mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Mac OS X-style window cycling.
For those not familiar with the way Macs cycle windows, the Command-Tab sequence (Alt-Tab elsewhere) switches between DIFFERENT application windows and Command-Grave (key above tab) switches between windows owned by the SAME application as is currently focused. So if you had three Safari and two Finder windows open, and Safari had focus, Command-Tab would switch to Finder; Command-Tab would switch back to Safari; Command-Grave would switch to a different Safari window etc. This patch implements "something like" the above by only populating the switchpanel with windows matching the currently-focused WWindow's wm_class when the new cycling mode is activated. In practice this means you can switch to The Next XTerm or The Next Firefox Window using this method. The configuration names for these new shortcuts are GroupNext and GroupPrev. The patch tells WPrefs.app about them. Of course switching to The Next Window is still possible with the (unchanged) FocusNext and FocusPrev keys.
This commit is contained in:
committed by
Carlos R. Mafra
parent
5c46f48898
commit
18408fff93
@@ -24,7 +24,7 @@
|
||||
|
||||
typedef struct SwitchPanel WSwitchPanel;
|
||||
|
||||
WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace);
|
||||
WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace, Bool class_only);
|
||||
|
||||
void wSwitchPanelDestroy(WSwitchPanel *panel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user