summaryrefslogtreecommitdiff
path: root/openbox/keyboard.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-09 08:05:06 +0000
committerDana Jansens <danakj@orodu.net>2003-09-09 08:05:06 +0000
commit3fcba81510c98ac517afbab0ba60ced3d30f202f (patch)
treef32a9acf997df20cf0075f7dd33e8875f8a339e4 /openbox/keyboard.c
parentfbbc4c55ba865fb582f195eab4cdcc63090b0a5b (diff)
save teh client for interactive actions cuz after teh keyboard is grabbed there is no client
Diffstat (limited to 'openbox/keyboard.c')
-rw-r--r--openbox/keyboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c
index fe13c97b..d044ba5c 100644
--- a/openbox/keyboard.c
+++ b/openbox/keyboard.c
@@ -157,7 +157,7 @@ void keyboard_interactive_grab(guint state, ObClient *client,
interactive_states = g_slist_append(interactive_states, s);
}
-gboolean keyboard_process_interactive_grab(const XEvent *e)
+gboolean keyboard_process_interactive_grab(const XEvent *e, ObClient **client)
{
GSList *it, *next;
gboolean handled = FALSE;
@@ -192,7 +192,8 @@ gboolean keyboard_process_interactive_grab(const XEvent *e)
}
handled = TRUE;
- }
+ } else
+ *client = s->client;
}
return handled;