Skip to content

Commit

Permalink
Fix a crash when a ping timeout dialog is destroyed for issue #729.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Oct 30, 2023
1 parent 6d6e359 commit 61ff479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wmmgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,7 @@ YFrameWindow *YWindowManager::getLastFocus(bool skipAllWorkspaces, int workspace
for (; pass < 3; pass++) {
YFrameIter w = focusedReverseIterator();
while (++w) {
if (!w->client()->adopted())
if (!w->client() || !w->client()->adopted())
continue;
if (w->isUnmapped() && (pass < 2 || !w->isRollup()))
continue;
Expand Down

0 comments on commit 61ff479

Please sign in to comment.