aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.hh
diff options
context:
space:
mode:
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.