From 4b5c00b764417b91388d6e88b10f3cbd2764ff02 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Fri, 3 Oct 2008 23:16:37 -0700 Subject: in ClickFocus, replay pointer before focusing window --- src/Window.cc | 6 +++--- 1 file 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) { frame().tabcontainer().tryButtonPressEvent(be); if (be.button == 1) { - if (!m_focused && acceptsFocus() && m_click_focus) //check focus - focus(); - if (frame().window().window() == be.window || frame().tabcontainer().window() == be.window) { if (screen().clickRaises()) @@ -2406,6 +2403,9 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) { } else if (frame().handle() == be.window) raise(); + if (!m_focused && acceptsFocus() && m_click_focus) //check focus + focus(); + menu().hide(); } } -- cgit v0.11.2