Guard WINGs realizeWindow against NULL display in Wayland mode
When a menu entry triggers a WINGs dialog (e.g. 'Run...'), the realizeObserver notification calls realizeWindow which does X11 calls (XSetClassHint, XAllocWMHints). In Wayland mode scr->display is NULL, causing a segfault. Skip the entire function when display is NULL.
This commit is contained in:
parent
fb2d0ab2ef
commit
a517c16f5e
|
|
@ -417,6 +417,9 @@ static void realizeWindow(WMWindow * win)
|
|||
Atom atoms[4];
|
||||
int count;
|
||||
|
||||
if (!scr->display)
|
||||
return;
|
||||
|
||||
classHint = XAllocClassHint();
|
||||
classHint->res_name = win->wname;
|
||||
classHint->res_class = WMGetApplicationName();
|
||||
|
|
|
|||
Loading…
Reference in New Issue