diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-09 07:16:38 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-09 07:16:38 +0000 |
| commit | 8fe0cb8989c1fe12b30b9030b446345f25340d35 (patch) | |
| tree | b6153a2844ff8a1872d53bf0c843f6079db6f8f8 /openbox/keyboard.c | |
| parent | 0f544808b8372a6c8a2cbfae214f2803dd3c6170 (diff) | |
no more interactive mouse actions, they are evil etc. actions now "feel" much more solid. if move/resizing a window while changing workspaces, it will follow.
Diffstat (limited to 'openbox/keyboard.c')
| -rw-r--r-- | openbox/keyboard.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 65d2f2e0..fe13c97b 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -12,6 +12,7 @@ #include "keytree.h" #include "keyboard.h" #include "translate.h" +#include "moveresize.h" #include <glib.h> @@ -129,12 +130,15 @@ gboolean keyboard_bind(GList *keylist, ObAction *action) } void keyboard_interactive_grab(guint state, ObClient *client, - ObFrameContext context, ObAction *action) + ObAction *action) { ObInteractiveState *s; g_assert(action->data.any.interactive); + if (moveresize_in_progress) + moveresize_end(FALSE); + if (!interactive_states) { if (!grab_keyboard(TRUE)) return; @@ -149,14 +153,11 @@ void keyboard_interactive_grab(guint state, ObClient *client, s->state = state; s->client = client; s->action = action; - s->context = context; interactive_states = g_slist_append(interactive_states, s); } -gboolean keyboard_process_interactive_grab(const XEvent *e, - ObClient **client, - ObFrameContext *context) +gboolean keyboard_process_interactive_grab(const XEvent *e) { GSList *it, *next; gboolean handled = FALSE; @@ -168,9 +169,6 @@ gboolean keyboard_process_interactive_grab(const XEvent *e, next = g_slist_next(it); - *client = s->client; - *context = s->context; - if ((e->type == KeyRelease && !(s->state & e->xkey.state))) done = TRUE; |
