aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Window.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 4606da5..305f7f3 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2388,9 +2388,6 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2388 2388
2389 frame().tabcontainer().tryButtonPressEvent(be); 2389 frame().tabcontainer().tryButtonPressEvent(be);
2390 if (be.button == 1) { 2390 if (be.button == 1) {
2391 if (!m_focused && acceptsFocus() && m_click_focus) //check focus
2392 focus();
2393
2394 if (frame().window().window() == be.window || 2391 if (frame().window().window() == be.window ||
2395 frame().tabcontainer().window() == be.window) { 2392 frame().tabcontainer().window() == be.window) {
2396 if (screen().clickRaises()) 2393 if (screen().clickRaises())
@@ -2406,6 +2403,9 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2406 } else if (frame().handle() == be.window) 2403 } else if (frame().handle() == be.window)
2407 raise(); 2404 raise();
2408 2405
2406 if (!m_focused && acceptsFocus() && m_click_focus) //check focus
2407 focus();
2408
2409 menu().hide(); 2409 menu().hide();
2410 } 2410 }
2411} 2411}