JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix a silly crash
authorMarco Peereboom <marco@conformal.com>
Fri, 30 Jan 2009 03:51:01 +0000 (03:51 +0000)
committerMarco Peereboom <marco@conformal.com>
Fri, 30 Jan 2009 03:51:01 +0000 (03:51 +0000)
scrotwm.c

index fbb41b3..49ffc85 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -1515,6 +1515,9 @@ send_to_ws(struct swm_region *r, union arg *args)
        Atom                    ws_idx_atom = 0;
        unsigned char           ws_idx_str[SWM_PROPLEN];
 
+       if (win == NULL)
+               return;
+
        DNPRINTF(SWM_D_MOVE, "send_to_ws: win: %lu\n", win->id);
 
        ws = win->ws;