diff --git a/src/x11/screen.c b/src/x11/screen.c index 6ce1580..b232e04 100644 --- a/src/x11/screen.c +++ b/src/x11/screen.c @@ -197,6 +197,9 @@ bool window_is_fullscreen(Window window) { bool fs = false; + if (!window) + return false; + Atom has_wm_state = XInternAtom(xctx.dpy, "_NET_WM_STATE", True); if (has_wm_state == None){ return false;