aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorJim Ramsay <jim.ramsay@motorola.com>2010-05-28 17:22:13 (GMT)
committerJim Ramsay <jim.ramsay@motorola.com>2010-05-28 19:10:28 (GMT)
commitcdbaf5c04d07e8310c661e12e354724a619e5911 (patch)
tree5e39e64b2caa4ff79cce2749ba1331574b06673b /src/Screen.cc
parent769130f51a8f670ba46dac50d7602f6b936c9dc1 (diff)
downloadfluxbox-cdbaf5c04d07e8310c661e12e354724a619e5911.zip
fluxbox-cdbaf5c04d07e8310c661e12e354724a619e5911.tar.bz2
Add new focus model: StrictMouseFocus
This is not actually implemented yet, but from now on, "MouseFocus" means: Focus follows mouse only when you are moving the mouse, any EnterNotify events caused by non-mouse operations (window closing, keycommands, changing desktops) will *not* shift focus And once fully-implemented, "StrictMouseFocus" will mean: Focus follows mouse on every EnterNotify event (except when the "ClientMenu" closes or during alt+tab window cycling)
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index b712b81..44649c0 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1555,8 +1555,13 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) {
1555 "Click To Focus", "Click to focus", 1555 "Click To Focus", "Click to focus",
1556 FocusControl::CLICKFOCUS); 1556 FocusControl::CLICKFOCUS);
1557 _FOCUSITEM(Configmenu, MouseFocus, 1557 _FOCUSITEM(Configmenu, MouseFocus,
1558 "Mouse Focus", "Mouse Focus", 1558 "Mouse Focus (Keyboard Friendly)",
1559 "Mouse Focus (Keyboard Friendly)",
1559 FocusControl::MOUSEFOCUS); 1560 FocusControl::MOUSEFOCUS);
1561 _FOCUSITEM(Configmenu, StrictMouseFocus,
1562 "Mouse Focus (Strict)",
1563 "Mouse Focus (Strict)",
1564 FocusControl::STRICTMOUSEFOCUS);
1560#undef _FOCUSITEM 1565#undef _FOCUSITEM
1561 1566
1562 focus_menu->insert(new FbTk::MenuSeparator()); 1567 focus_menu->insert(new FbTk::MenuSeparator());