diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-17 05:28:35 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-17 05:28:35 +0000 |
| commit | 7886b797a36f5a035a75a19424e0b3cf7825baf8 (patch) | |
| tree | d7279da4dbeda975909f71af3193a39ce7e69901 /plugins/keyboard/keyparse.c | |
| parent | 55c424d38bb119bd04199ed5e73b035b00474dd9 (diff) | |
move the move/resize functionality into moveresize.c, for use with the netwm atoms. use it from teh plugins. combine the two actions.
Diffstat (limited to 'plugins/keyboard/keyparse.c')
| -rw-r--r-- | plugins/keyboard/keyparse.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/keyboard/keyparse.c b/plugins/keyboard/keyparse.c index 61c7cd9d..b3c00f7e 100644 --- a/plugins/keyboard/keyparse.c +++ b/plugins/keyboard/keyparse.c @@ -1,4 +1,5 @@ #include "kernel/parse.h" +#include "kernel/prop.h" #include "keyboard.h" void keyparse(ParseToken *token) @@ -44,9 +45,11 @@ void keyparse(ParseToken *token) action = action_from_string(token->data.identifier); /* no move/resize with the keyboard */ - if (action && - (action->func == action_move || - action->func == action_resize)) { + if (action && action->func == action_moveresize && + action->data.moveresize.corner != + prop_atoms.net_wm_moveresize_move_keyboard && + action->data.moveresize.corner != + prop_atoms.net_wm_moveresize_size_keyboard) { action_free(action); action = NULL; } |
