don't crash when apps do weird things (i am talking to you thunderbird).

doesn't fix the underlying issues though but at least it can be worked
around by either switching workspaces or kill -1 scrotwm
This commit is contained in:
Marco Peereboom 2011-01-18 19:25:58 +00:00
parent e218053b30
commit 5b36603cb4

View file

@ -1713,7 +1713,7 @@ void
unfocus_win(struct ws_win *win)
{
XEvent cne;
Window none = None;
Window none = None;
DNPRINTF(SWM_D_FOCUS, "unfocus_win: id: %lu\n", WINID(win));
@ -1723,7 +1723,7 @@ unfocus_win(struct ws_win *win)
return;
if (validate_ws(win->ws))
abort(); /* XXX replace with return at some point */
return; /* XXX this gets hit with thunderbird, needs fixing */
if (win->ws->r == NULL)
return;
@ -1791,7 +1791,7 @@ focus_win(struct ws_win *win)
return;
if (validate_ws(win->ws))
abort(); /* XXX replace with return at some point */
return; /* XXX this gets hit with thunderbird, needs fixing */
if (validate_win(win)) {
kill_refs(win);