aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.hh
diff options
context:
space:
mode:
authorHendrik Iben <mikro@zvxeb.de>2012-11-18 19:09:35 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-11-20 07:04:50 (GMT)
commite65a966d807e6b9b961817a3b160af1d4a765e0d (patch)
tree2ba8f0678bf607bfbb6e544740aefc9c7bade216 /src/FocusControl.hh
parentb4534e0f28664f8b7a6d7a1155b0178232ed4e51 (diff)
downloadfluxbox-e65a966d807e6b9b961817a3b160af1d4a765e0d.zip
fluxbox-e65a966d807e6b9b961817a3b160af1d4a765e0d.tar.bz2
Added option for focus revert to stay on current head
Diffstat (limited to 'src/FocusControl.hh')
-rw-r--r--src/FocusControl.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FocusControl.hh b/src/FocusControl.hh
index c265253..d583d16 100644
--- a/src/FocusControl.hh
+++ b/src/FocusControl.hh
@@ -124,6 +124,10 @@ public:
124 TabFocusModel tabFocusModel() const { return *m_tab_focus_model; } 124 TabFocusModel tabFocusModel() const { return *m_tab_focus_model; }
125 /// @return true if newly created windows are focused 125 /// @return true if newly created windows are focused
126 bool focusNew() const { return *m_focus_new; } 126 bool focusNew() const { return *m_focus_new; }
127#ifdef XINERAMA
128 /// @return true if focus reverts to same head only
129 bool focusSameHead() const { return *m_focus_same_head; }
130#endif // XINERAMA
127 131
128 /// @return last focused client in a specific workspace, or NULL. 132 /// @return last focused client in a specific workspace, or NULL.
129 Focusable *lastFocusedWindow(int workspace); 133 Focusable *lastFocusedWindow(int workspace);
@@ -161,6 +165,9 @@ private:
161 FbTk::Resource<FocusModel> m_focus_model; 165 FbTk::Resource<FocusModel> m_focus_model;
162 FbTk::Resource<TabFocusModel> m_tab_focus_model; 166 FbTk::Resource<TabFocusModel> m_tab_focus_model;
163 FbTk::Resource<bool> m_focus_new; 167 FbTk::Resource<bool> m_focus_new;
168#ifdef XINERAMA
169 FbTk::Resource<bool> m_focus_same_head;
170#endif // XINERAMA
164 171
165 // This list keeps the order of window focusing for this screen 172 // This list keeps the order of window focusing for this screen
166 // Screen global so it works for sticky windows too. 173 // Screen global so it works for sticky windows too.