summaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-02 14:57:02 +0000
committerDana Jansens <danakj@orodu.net>2002-07-02 14:57:02 +0000
commit888c0bac90d4932d00dd7f7447ea52117aff6de0 (patch)
treedac16983de54810978e5f39506ea0fccd49937da /src/Screen.cc
parentffa4c7f3414944869016497a4f560c24b9d8b3e9 (diff)
backing out all changes to make mouse button mapping's configurable
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 88cba673..775254c6 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -88,7 +88,6 @@ using std::string;
#include "Workspace.hh"
#include "Workspacemenu.hh"
#include "XAtom.hh"
-#include "Input.hh"
#ifndef FONT_ELEMENT_SIZE
#define FONT_ELEMENT_SIZE 50
@@ -314,7 +313,6 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(bb, scrn) {
// call this again just in case a window we found updates the Strut list
updateAvailableArea();
- updateFocusModel();
}
@@ -2184,31 +2182,8 @@ void BScreen::toggleFocusModel(FocusModel model) {
void BScreen::updateFocusModel()
{
- std::for_each(iconList.begin(), iconList.end(),
- std::mem_fun(&BlackboxWindow::ungrabButtons));
- std::for_each(windowList.begin(), windowList.end(),
- std::mem_fun(&BlackboxWindow::ungrabButtons));
-
- if (! resource.sloppy_focus) {
- blackbox->getInput()->add(Button1, 0, BInput::WindowClientPress,
- BInput::Raise);
- blackbox->getInput()->add(Button1, 0, BInput::WindowClientPress,
- BInput::Focus);
- } else {
- if (resource.click_raise)
- blackbox->getInput()->add(Button1, 0, BInput::WindowClientPress,
- BInput::Raise);
- else
- blackbox->getInput()->remove(Button1, 0, BInput::WindowClientPress,
- BInput::Raise);
- blackbox->getInput()->remove(Button1, 0, BInput::WindowClientPress,
- BInput::Focus);
- }
-
- std::for_each(iconList.begin(), iconList.end(),
- std::mem_fun(&BlackboxWindow::grabButtons));
- std::for_each(windowList.begin(), windowList.end(),
- std::mem_fun(&BlackboxWindow::grabButtons));
+ std::for_each(workspacesList.begin(), workspacesList.end(),
+ std::mem_fun(&Workspace::updateFocusModel));
}