1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

Coverity: fix wmspec dereference after null check

This commit is contained in:
David Maciejak
2023-03-02 20:03:34 +08:00
committed by Carlos R. Mafra
parent 59a686d22e
commit 0ccc5bbde7

View File

@@ -1736,7 +1736,7 @@ Bool wNETWMProcessClientMessage(XClientMessageEvent *event)
if (wwin->frame->workspace == wwin->screen_ptr->current_workspace /* No workspace change */
|| event->data.l[0] == 2 /* Requested by pager */
|| WFLAGP(wwin, focus_across_wksp) /* Explicitly allowed */) {
wNETWMShowingDesktop(scr, False);
wNETWMShowingDesktop(wwin->screen_ptr, False);
wMakeWindowVisible(wwin);
}
return True;