all repos — fluxbox @ 475e966f192be938c84e8b3492c392671b276985

custom fork of the fluxbox windowmanager

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
Thomas Lübking thomas.luebking@gmail.com
commit

475e966f192be938c84e8b3492c392671b276985

parent

6907dc2c23c4baea051061264a2954042cd187d9

1 files changed, 16 insertions(+), 0 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -2381,6 +2381,14 @@ context, &winClient(), be.time)) {

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 // - raise() if clickRaise is enabled // - hide open menues

@@ -2398,6 +2406,14 @@ }

FbTk::Menu::hideShownMenu(); if (!m_focused && acceptsFocus() && m_click_focus) focus(); + + if (!screen().focusControl().isMouseTabFocus() && + client && client != m_client && + !screen().focusControl().isIgnored(be.x_root, be.y_root) ) { + setCurrentClient(*client, isFocused()); + } + + }