Skip to content

Commit

Permalink
In DEBUG mode, guard against nullptr focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Jan 10, 2024
1 parent d849543 commit 62d2d12
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 @@ -1086,7 +1086,7 @@ void YWindowManager::setFocus(YFrameWindow *f, bool canWarp, bool reorder) {
} else if (f && c && w == c) {
MSG(("%lX Focus 0x%lX client %s",
xapp->getEventTime("focus1"), w->handle(), f->getTitle().c_str()));
} else {
} else if (w) {
MSG(("%lX Focus 0x%lX",
xapp->getEventTime("focus1"), w->handle()));
}
Expand Down

0 comments on commit 62d2d12

Please sign in to comment.