aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-10-04 06:16:37 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-10-04 06:16:37 (GMT)
commit4b5c00b764417b91388d6e88b10f3cbd2764ff02 (patch)
treed46e45771b44d03237389f14764f3dfad0d87c10 /src
parentb265d0d8703cf38e526bc60229cd51eabab27f0f (diff)
downloadfluxbox_paul-4b5c00b764417b91388d6e88b10f3cbd2764ff02.zip
fluxbox_paul-4b5c00b764417b91388d6e88b10f3cbd2764ff02.tar.bz2
in ClickFocus, replay pointer before focusing window
Diffstat (limited to 'src')
-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}