aboutsummaryrefslogtreecommitdiff
path: root/i3-config-wizard
diff options
context:
space:
mode:
authorDeiz <silverwraithii@gmail.com>2015-03-28 12:56:36 -0400
committerDeiz <silverwraithii@gmail.com>2015-03-28 13:00:19 -0400
commit95fa121c56cc0de9cebdbe7cb3349d6b4fc56fc8 (patch)
tree55558b24b2f4d6b6c8df8808ad416a9f91ae554e /i3-config-wizard
parentaf71d3a2f138f506cd9c59781327964ce5de5c03 (diff)
downloadi3-95fa121c56cc0de9cebdbe7cb3349d6b4fc56fc8.tar.gz
i3-95fa121c56cc0de9cebdbe7cb3349d6b4fc56fc8.zip
Switch the wizard's modifier choice when up or down are pressed
Diffstat (limited to 'i3-config-wizard')
-rw-r--r--i3-config-wizard/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c
index f052d6d5..b3404424 100644
--- a/i3-config-wizard/main.c
+++ b/i3-config-wizard/main.c
@@ -592,6 +592,12 @@ static int handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press
finish();
}
+ /* Swap between modifiers when up or down is pressed. */
+ if (sym == XK_Up || sym == XK_Down) {
+ modifier = (modifier == MOD_Mod1) ? MOD_Mod4 : MOD_Mod1;
+ handle_expose();
+ }
+
/* cancel any time */
if (sym == XK_Escape)
exit(0);