From: Marco Peereboom Date: Tue, 18 Jan 2011 19:25:58 +0000 (+0000) Subject: don't crash when apps do weird things (i am talking to you thunderbird). X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=5b36603cb43862a06eed518c37465de61a98bb52;p=spectrwm.git 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 --- diff --git a/scrotwm.c b/scrotwm.c index a0d33b7..6277dcb 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -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);