Catch screen without window

This commit is contained in:
Benedikt Heine 2017-11-20 18:18:04 +01:00
parent bbe262853a
commit aa7a851fdd

View File

@ -197,6 +197,9 @@ bool window_is_fullscreen(Window window)
{ {
bool fs = false; bool fs = false;
if (!window)
return false;
Atom has_wm_state = XInternAtom(xctx.dpy, "_NET_WM_STATE", True); Atom has_wm_state = XInternAtom(xctx.dpy, "_NET_WM_STATE", True);
if (has_wm_state == None){ if (has_wm_state == None){
return false; return false;