aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-07-20 18:29:01 (GMT)
committermathias <mathias>2005-07-20 18:29:01 (GMT)
commit460dffdcc1f2de5463225feedd7d02f6f27958c2 (patch)
tree2e76bc31a08544a423e018c94ac9b06f7965684e /src/fluxbox.cc
parent3e16ad8cf8be40a1868b6c133649d6549a755761 (diff)
downloadfluxbox-460dffdcc1f2de5463225feedd7d02f6f27958c2.zip
fluxbox-460dffdcc1f2de5463225feedd7d02f6f27958c2.tar.bz2
Changed some *Focus options, just to make some things a bit more clear.
the "Sloppy" was always a bit .. unprecise. removed SloppyFocus, SemiSloppyFocus and ClickToFocus options added MouseFocus, ClickFocus, MouseTabFocus, ClickTabFocus - MouseFocus - change the focus to the window under the mouse (almost similar to the 'old' SloppyFocus) - ClickFocus - change the focus to the window the user clicks - MouseTabFocus - change active tabclient to the one under the mouse in titlebar, does NOT change the focus - ClickTabFocus - change active tabclient when clicked onto a tabbutton to achieve former SemiSloppyFocus behavior one needs MouseFocus and ClickTabFocus
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 732e8a6..ef90d4e 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1892,12 +1892,11 @@ void Fluxbox::revertFocus(BScreen &screen) {
1892 next_focus->fbwindow()->setCurrentClient(*next_focus, true))) { 1892 next_focus->fbwindow()->setCurrentClient(*next_focus, true))) {
1893 setFocusedWindow(0); // so we don't get dangling m_focused_window pointer 1893 setFocusedWindow(0); // so we don't get dangling m_focused_window pointer
1894 switch (screen.getFocusModel()) { 1894 switch (screen.getFocusModel()) {
1895 case BScreen::SLOPPYFOCUS: 1895 case BScreen::MOUSEFOCUS:
1896 case BScreen::SEMISLOPPYFOCUS:
1897 XSetInputFocus(FbTk::App::instance()->display(), 1896 XSetInputFocus(FbTk::App::instance()->display(),
1898 PointerRoot, None, CurrentTime); 1897 PointerRoot, None, CurrentTime);
1899 break; 1898 break;
1900 case BScreen::CLICKTOFOCUS: 1899 case BScreen::CLICKFOCUS:
1901 screen.rootWindow().setInputFocus(RevertToPointerRoot, CurrentTime); 1900 screen.rootWindow().setInputFocus(RevertToPointerRoot, CurrentTime);
1902 break; 1901 break;
1903 } 1902 }