Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9802663
)
fix crash as described in FS#37
author
Marco Peereboom
<marco@conformal.com>
Tue, 18 Jan 2011 19:18:31 +0000
(19:18 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Tue, 18 Jan 2011 19:18:31 +0000
(19:18 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
33de7c2
..
a0d33b7
100644
(file)
--- 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;
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);
ewmh_update_win_state(win, ewmh[_NET_WM_STATE_ABOVE].atom,
_NET_WM_STATE_TOGGLE);