Quoting message written on Monday 2014-05-26 13:42:08 by Amadeusz: > Well something along those lines seems to work, but it seems > 'workaroundish', problem is that those (and few more like esc and > return) are hardcoded. But if Carlos has nothing against such approach > I will write a full patch. > > > diff --git a/src/cycling.c b/src/cycling.c > index 9331739..35d62d1 100644 > --- a/src/cycling.c > +++ b/src/cycling.c > @@ -153,7 +153,7 @@ void StartWindozeCycle(WWindow *wwin, XEvent > *event, Bool next, Bool class_only) && > wKeyBindings[WKBD_FOCUSNEXT].modifier == modifiers) || > (wKeyBindings[WKBD_GROUPNEXT].keycode == ev.xkey.keycode && > wKeyBindings[WKBD_GROUPNEXT].modifier == modifiers) > - || ev.xkey.keycode == rightKey) { > + || (wPreferences.swtileImage && > ev.xkey.keycode == rightKey)) { > newFocused = > wSwitchPanelSelectNext(swpanel, False, ev.xkey.keycode != rightKey, > (!class_only && wKeyBindings[WKBD_GROUPNEXT].keycode == ev.xkey.keycode > && wKeyBindings[WKBD_GROUPNEXT].modifier == modifiers)); oldFocused = > change_focus_and_raise(newFocused, oldFocused, swpanel, scr, False); @@ > -162,7 +162,7 @@ void StartWindozeCycle(WWindow *wwin, XEvent *event, > Bool next, Bool class_only) && wKeyBindings[WKBD_FOCUSPREV].modifier == > modifiers) || (wKeyBindings[WKBD_GROUPPREV].keycode == ev.xkey.keycode > && wKeyBindings[WKBD_GROUPPREV].modifier == modifiers) > - || ev.xkey.keycode == leftKey) { > + || (wPreferences.swtileImage && > ev.xkey.keycode == leftKey)) { > newFocused = > wSwitchPanelSelectNext(swpanel, True, ev.xkey.keycode != leftKey, > (!class_only && wKeyBindings[WKBD_GROUPPREV].keycode == ev.xkey.keycode > && wKeyBindings[WKBD_GROUPPREV].modifier == modifiers)); oldFocused = > change_focus_and_raise(newFocused, oldFocused, swpanel, scr, False);
Thank you Amadeusz. I have just tested your changes with and without switchpanel and it works fine (the switchpanel case is unaffected by the change). -- Josip Deanovic -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.