- 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));