fix tab selection by mousepress
Tabs outside the titlebar are not selectable by mouseclicks (ie. the feature does not work) The patch clones the enterNotifyEvent code and ignores (for now) the actual button (no idea whether it makes any sense to restrict it the left button?) BUG: 1103
This commit is contained in:
parent
6907dc2c23
commit
475e966f19
1 changed files with 16 additions and 0 deletions
|
@ -2381,6 +2381,14 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WinClient *client = 0;
|
||||||
|
if (!screen().focusControl().isMouseTabFocus()) {
|
||||||
|
// determine if we're in a label button (tab)
|
||||||
|
client = winClientOfLabelButtonWindow(be.window);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// if nothing was bound via keys-file then
|
// if nothing was bound via keys-file then
|
||||||
// - raise() if clickRaise is enabled
|
// - raise() if clickRaise is enabled
|
||||||
// - hide open menues
|
// - hide open menues
|
||||||
|
@ -2399,6 +2407,14 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
|
||||||
if (!m_focused && acceptsFocus() && m_click_focus)
|
if (!m_focused && acceptsFocus() && m_click_focus)
|
||||||
focus();
|
focus();
|
||||||
|
|
||||||
|
if (!screen().focusControl().isMouseTabFocus() &&
|
||||||
|
client && client != m_client &&
|
||||||
|
!screen().focusControl().isIgnored(be.x_root, be.y_root) ) {
|
||||||
|
setCurrentClient(*client, isFocused());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) {
|
void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) {
|
||||||
|
|
Loading…
Reference in a new issue