X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=a0d33b799640f141224c7eab340b21165d755a24;hb=e218053b3044cbc21b8c2485e0a1584ef344881f;hp=33de7c29d0803caff60bf20ce21daff8330a115f;hpb=98026635c53e85dbe05fab0c1c8460a4ddd1b51d;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index 33de7c2..a0d33b7 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -2834,6 +2834,9 @@ floating_toggle(struct swm_region *r, union arg *args) struct ws_win *win = r->ws->focus; union arg a; + if (win == NULL) + return; + ewmh_update_win_state(win, ewmh[_NET_WM_STATE_ABOVE].atom, _NET_WM_STATE_TOGGLE);