From 95fa121c56cc0de9cebdbe7cb3349d6b4fc56fc8 Mon Sep 17 00:00:00 2001 From: Deiz Date: Sat, 28 Mar 2015 12:56:36 -0400 Subject: [PATCH] Switch the wizard's modifier choice when up or down are pressed --- i3-config-wizard/main.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);