From: Deiz Date: Sat, 28 Mar 2015 16:56:36 +0000 (-0400) Subject: Switch the wizard's modifier choice when up or down are pressed X-Git-Tag: 4.10.1~11^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95fa121c56cc0de9cebdbe7cb3349d6b4fc56fc8;p=i3%2Fi3 Switch the wizard's modifier choice when up or down are pressed --- 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);