JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
don't crash when apps do weird things (i am talking to you thunderbird).
authorMarco Peereboom <marco@conformal.com>
Tue, 18 Jan 2011 19:25:58 +0000 (19:25 +0000)
committerMarco Peereboom <marco@conformal.com>
Tue, 18 Jan 2011 19:25:58 +0000 (19:25 +0000)
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

index a0d33b7..6277dcb 100644 (file)
--- 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);