summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-05 00:50:53 +0000
committerDana Jansens <danakj@orodu.net>2007-05-05 00:50:53 +0000
commit9a9e3f6bf6be75094636e37d54fb16e4456b43be (patch)
treed6da68af860d34824a5d0a78ff49fc29dc89a339 /openbox/event.c
parent0c15af505fb5bcd5e906e0146f82038b51f73307 (diff)
woa.. let you do mouse actions while in an interactive keyboard action, and let you do keyboard actions while move/resizing. yay. also you can click in windows at the same time..
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/openbox/event.c b/openbox/event.c
index ff9ea574..efef0faa 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -546,14 +546,16 @@ static void event_process(const XEvent *ec, gpointer data)
}
if (useevent) {
- if (!keyboard_process_interactive_grab(e, &client)) {
- if (moveresize_in_progress) {
- moveresize_event(e);
-
+ /* if the keyboard interactive action uses the event then dont
+ use it for bindings. likewise is moveresize uses the event. */
+ if (!keyboard_process_interactive_grab(e, &client) &&
+ !(moveresize_in_progress && moveresize_event(e)))
+ {
+ if (moveresize_in_progress)
/* make further actions work on the client being
moved/resized */
client = moveresize_client;
- }
+
menu_can_hide = FALSE;
ob_main_loop_timeout_add(ob_main_loop,