Support for same-class cycling in open switchpanel.
commit94777b97156db1a2bcdfcc8fd486fcc79b0bd7f7
authorIain Patterson <wm@iain.cx>
Mon, 22 Apr 2013 13:03:14 +0000 (22 14:03 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 2 May 2013 19:41:07 +0000 (2 20:41 +0100)
treee378ccbd410670c142cf94bbd4ff70daf8957ba5
parent8cb6a787264cc0adef2c82af0897ba8b8461783d
Support for same-class cycling in open switchpanel.

If the switchpanel was opened with either FocusNextKey or FocusPrevKey
shortcut, and the user presses GroupNextKey or GroupPrevKey, skip over
windows of a different class when cycling through windows in the
switchpanel.

In the case where the switchpanel was opened with FocusNextKey or
FocusPrevKey initially, the check can be skipped because all the
available choices are necessarily of the same class already.
src/cycling.c
src/switchpanel.c
src/switchpanel.h