Some safety checks to make sure we return a border, else calls to policy are
authorChristopher Michael <cpmichael1@comcast.net>
Fri, 18 Dec 2009 05:17:03 +0000 (05:17 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Fri, 18 Dec 2009 05:17:03 +0000 (05:17 +0000)
useless.

SVN revision: 44535

src/modules/illume2/e_mod_layout.c

index b4b3071..3499315 100644 (file)
@@ -711,7 +711,7 @@ _cb_event_client_message(void *data, int type, void *event)
         E_Border *bd;
 
         bd = e_border_find_by_client_window(ev->win);
-        if (bd->stolen) return 1;
+        if ((!bd) || (bd->stolen)) return 1;
         if ((mode) && (mode->funcs.border_activate))
           mode->funcs.border_activate(bd);
      }
@@ -781,7 +781,7 @@ _cb_event_client_message(void *data, int type, void *event)
         E_Border *bd;
 
         bd = e_border_find_by_client_window(ev->win);
-        if (bd->stolen) return 1;
+        if ((!bd) || (bd->stolen)) return 1;
         if ((mode) && (mode->funcs.drag_start))
           mode->funcs.drag_start(bd);
      }
@@ -790,7 +790,7 @@ _cb_event_client_message(void *data, int type, void *event)
         E_Border *bd;
 
         bd = e_border_find_by_client_window(ev->win);
-        if (bd->stolen) return 1;
+        if ((!bd) || (bd->stolen)) return 1;
         if ((mode) && (mode->funcs.drag_end))
           mode->funcs.drag_end(bd);
      }