projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66af88b
)
only do moveresize when grab is successful
author
Dana Jansens
<danakj@orodu.net>
Sun, 13 May 2007 23:18:44 +0000
(23:18 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 13 May 2007 23:18:44 +0000
(23:18 +0000)
openbox/moveresize.c
patch
|
blob
|
history
diff --git
a/openbox/moveresize.c
b/openbox/moveresize.c
index
ac51f8b
..
3d9914c
100644
(file)
--- a/
openbox/moveresize.c
+++ b/
openbox/moveresize.c
@@
-162,6
+162,13
@@
void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
(c->functions & OB_CLIENT_FUNC_RESIZE)))
return;
+ if (!grab_pointer(TRUE, FALSE, cur))
+ return;
+ if (!grab_keyboard(TRUE)) {
+ grab_pointer(FALSE, FALSE, OB_CURSOR_NONE);
+ return;
+ }
+
frame_end_iconify_animation(c->frame);
moveresize_client = c;
@@
-262,9
+269,6
@@
void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
waiting_for_sync = FALSE;
}
#endif
-
- grab_pointer(TRUE, FALSE, cur);
- grab_keyboard(TRUE);
}
void moveresize_end(gboolean cancel)