From 5b36603cb43862a06eed518c37465de61a98bb52 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 18 Jan 2011 19:25:58 +0000 Subject: [PATCH] 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 --- scrotwm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 1.7.10.4