Some safety checks to make sure we return a border, else calls to policy are

useless.



SVN revision: 44535
This commit is contained in:
Christopher Michael 2009-12-18 05:17:03 +00:00
parent 5b136293e1
commit 6ffaf58927
1 changed files with 3 additions and 3 deletions

View 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);
}