aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-03-30 20:29:46 (GMT)
committermarkt <markt>2007-03-30 20:29:46 (GMT)
commit3ab6b48974c32c742bda5dc6c3f217f9d58e3d99 (patch)
tree7a9852f2513e4677e636cd6261c87ba3002b3ab4 /src/FocusControl.hh
parentaef362350332d80febe1a4b72ee9b4b962ed527b (diff)
downloadfluxbox-3ab6b48974c32c742bda5dc6c3f217f9d58e3d99.zip
fluxbox-3ab6b48974c32c742bda5dc6c3f217f9d58e3d99.tar.bz2
pattern matching for window cycling
Diffstat (limited to 'src/FocusControl.hh')
-rw-r--r--src/FocusControl.hh18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/FocusControl.hh b/src/FocusControl.hh
index f7c40d9..9ab19e2 100644
--- a/src/FocusControl.hh
+++ b/src/FocusControl.hh
@@ -28,6 +28,7 @@
28 28
29#include "FbTk/Resource.hh" 29#include "FbTk/Resource.hh"
30 30
31class ClientPattern;
31class WinClient; 32class WinClient;
32class FluxboxWindow; 33class FluxboxWindow;
33class Focusable; 34class Focusable;
@@ -61,20 +62,19 @@ public:
61 // prevFocus/nextFocus option bits 62 // prevFocus/nextFocus option bits
62 enum { 63 enum {
63 CYCLEGROUPS = 0x01, 64 CYCLEGROUPS = 0x01,
64 CYCLESKIPSTUCK = 0x02,
65 CYCLESKIPSHADED = 0x04,
66 CYCLELINEAR = 0x08, 65 CYCLELINEAR = 0x08,
67 CYCLESKIPICONIC = 0x10,
68 CYCLEDEFAULT = 0x00
69 }; 66 };
70 67
71 explicit FocusControl(BScreen &screen); 68 explicit FocusControl(BScreen &screen);
72 69
73 void prevFocus() { cycleFocus(&m_focused_list, 0, true); } 70 void prevFocus() { cycleFocus(m_focused_list, 0, true); }
74 void nextFocus() { cycleFocus(&m_focused_list, 0, false); } 71 void nextFocus() { cycleFocus(m_focused_list, 0, false); }
75 void cycleFocus(Focusables *winlist, int options, bool reverse = false); 72 void cycleFocus(Focusables &winlist, const ClientPattern *pat = 0,
76 void cycleFocus(FocusedWindows *winlist, int options, bool reverse = false); 73 bool reverse = false);
77 void goToWindowNumber(Focusables *winlist, int num, int options); 74 void cycleFocus(FocusedWindows &winlist, const ClientPattern *pat = 0,
75 bool reverse = false);
76 void goToWindowNumber(Focusables &winlist, int num,
77 const ClientPattern *pat = 0);
78 78
79 void setScreenFocusedWindow(WinClient &win_client); 79 void setScreenFocusedWindow(WinClient &win_client);
80 void setFocusModel(FocusModel model); 80 void setFocusModel(FocusModel model);