in ClickFocus, replay pointer before focusing window

This commit is contained in:
Mark Tiefenbruck 2008-10-03 23:16:37 -07:00
parent b265d0d870
commit 4b5c00b764

View file

@ -2388,9 +2388,6 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
frame().tabcontainer().tryButtonPressEvent(be); frame().tabcontainer().tryButtonPressEvent(be);
if (be.button == 1) { if (be.button == 1) {
if (!m_focused && acceptsFocus() && m_click_focus) //check focus
focus();
if (frame().window().window() == be.window || if (frame().window().window() == be.window ||
frame().tabcontainer().window() == be.window) { frame().tabcontainer().window() == be.window) {
if (screen().clickRaises()) if (screen().clickRaises())
@ -2406,6 +2403,9 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
} else if (frame().handle() == be.window) } else if (frame().handle() == be.window)
raise(); raise();
if (!m_focused && acceptsFocus() && m_click_focus) //check focus
focus();
menu().hide(); menu().hide();
} }
} }