aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.hh
diff options
context:
space:
mode:
authorJim Ramsay <jim.ramsay@motorola.com>2010-05-28 19:50:15 (GMT)
committerJim Ramsay <jim.ramsay@motorola.com>2010-05-28 19:50:15 (GMT)
commit37a24132b5cd444fca025259f05618eec52935b2 (patch)
treeb6f64add5a665666996857a02150ebe3cac082a7 /src/FocusControl.hh
parentcdbaf5c04d07e8310c661e12e354724a619e5911 (diff)
downloadfluxbox_pavel-37a24132b5cd444fca025259f05618eec52935b2.zip
fluxbox_pavel-37a24132b5cd444fca025259f05618eec52935b2.tar.bz2
Implement StrictMouseFocus
As noted in the previous commit, StrictMouseFocus now works as advertised: Focus follows mouse on every EnterNotify event (except when the "ClientMenu" closes or during alt+tab window cycling)
Diffstat (limited to 'src/FocusControl.hh')
-rw-r--r--src/FocusControl.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/FocusControl.hh b/src/FocusControl.hh
index 72eec11..c265253 100644
--- a/src/FocusControl.hh
+++ b/src/FocusControl.hh
@@ -96,9 +96,15 @@ public:
96 bool isMouseTabFocus() const { return tabFocusModel() == MOUSETABFOCUS; } 96 bool isMouseTabFocus() const { return tabFocusModel() == MOUSETABFOCUS; }
97 97
98 /// Set the "ignore" pointer location to the current pointer location 98 /// Set the "ignore" pointer location to the current pointer location
99 void ignoreAtPointer(); 99 /// @param force If true, ignore even in StrictMouseFocus mode
100 void ignoreAtPointer(bool force = false);
100 /// Set the "ignore" pointer location to the given coordinates 101 /// Set the "ignore" pointer location to the given coordinates
101 void ignoreAt(int x, int y); 102 /// @param x Current X position of the pointer
103 /// @param y Current Y position of the pointer
104 /// @param force If true, ignore even in StrictMouseFocus mode
105 void ignoreAt(int x, int y, bool force = false);
106 /// unset the "ignore" pointer location
107 void ignoreCancel();
102 /// @return true if events at the given X/Y coordinate should be ignored 108 /// @return true if events at the given X/Y coordinate should be ignored
103 /// (ie, they were previously cached via one of the ignoreAt calls) 109 /// (ie, they were previously cached via one of the ignoreAt calls)
104 bool isIgnored(int x, int y); 110 bool isIgnored(int x, int y);