From 68a902aa2eeacc03e66823f7228685df53a3b18e Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 13 Nov 2013 14:27:24 +0000 Subject: [PATCH] Fix arrow keys in switchpanel. A previous commit broke the behaviour of the left and right arrow keys in the switchpanel. Releasing either of the keys would correctly select a new window but the panel would then close. The original, and desired, behaviour is for the panel to remain open after selecting a new window with the arrow keys. Reported by Yury Tarasievich. --- src/cycling.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cycling.c b/src/cycling.c index 7a9afc95..e752aee7 100644 --- a/src/cycling.c +++ b/src/cycling.c @@ -197,6 +197,9 @@ void StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next, Bool class_only) if (wPreferences.strict_windoze_cycle) break; + if (ev.xkey.keycode == leftKey || ev.xkey.keycode == rightKey) + break; + if (ev.xkey.keycode == XK_Return) break;