diff options
Diffstat (limited to 'src/FocusControl.hh')
-rw-r--r-- | src/FocusControl.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/FocusControl.hh b/src/FocusControl.hh index 91681ab..72eec11 100644 --- a/src/FocusControl.hh +++ b/src/FocusControl.hh | |||
@@ -42,8 +42,9 @@ public: | |||
42 | typedef std::list<Focusable *> Focusables; | 42 | typedef std::list<Focusable *> Focusables; |
43 | /// main focus model | 43 | /// main focus model |
44 | enum FocusModel { | 44 | enum FocusModel { |
45 | MOUSEFOCUS = 0, ///< focus follows mouse | 45 | MOUSEFOCUS = 0, ///< focus follows mouse, but only when the mouse is moving |
46 | CLICKFOCUS ///< focus on click | 46 | CLICKFOCUS, ///< focus on click |
47 | STRICTMOUSEFOCUS ///< focus always follows mouse, even when stationary | ||
47 | }; | 48 | }; |
48 | /// focus model for tabs | 49 | /// focus model for tabs |
49 | enum TabFocusModel { | 50 | enum TabFocusModel { |
@@ -90,7 +91,7 @@ public: | |||
90 | */ | 91 | */ |
91 | void dirFocus(FluxboxWindow &win, FocusDir dir); | 92 | void dirFocus(FluxboxWindow &win, FocusDir dir); |
92 | /// @return true if focus mode is mouse focus | 93 | /// @return true if focus mode is mouse focus |
93 | bool isMouseFocus() const { return focusModel() == MOUSEFOCUS; } | 94 | bool isMouseFocus() const { return focusModel() != CLICKFOCUS; } |
94 | /// @return true if tab focus mode is mouse tab focus | 95 | /// @return true if tab focus mode is mouse tab focus |
95 | bool isMouseTabFocus() const { return tabFocusModel() == MOUSETABFOCUS; } | 96 | bool isMouseTabFocus() const { return tabFocusModel() == MOUSETABFOCUS; } |
96 | 97 | ||