in ClickFocus, replay pointer before focusing window
This commit is contained in:
parent
b265d0d870
commit
4b5c00b764
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue