all repos — fluxbox @ ecdaab5edf619d3cdc7bba9856d5f92068c28c83

custom fork of the fluxbox windowmanager

fix titlebar ClickN handling

the tabcontainer is usually true and the releases were only
handled for the WINDOW context.

This relies on the patch to control OnTitlebar ./. OnWindow !

BUG: 1073
Thomas Lübking thomas.luebking@gmail.com
commit

ecdaab5edf619d3cdc7bba9856d5f92068c28c83

parent

08ea27de38a28cc2e9f5eab3bed094fc53d48952

1 files changed, 8 insertions(+), 4 deletions(-)

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

@@ -2460,11 +2460,15 @@ else if (isResizing())

stopResizing(); else if (m_attaching_tab) attachTo(re.x_root, re.y_root); - else if (!frame().tabcontainer().tryButtonReleaseEvent(re)) { + else if (m_last_button_x == re.x_root && m_last_button_y == re.y_root) { + int context = 0; + context = frame().getContext(re.subwindow ? re.subwindow : re.window, + re.x_root, re.y_root); + if (!context && re.subwindow) + context = frame().getContext(re.window); - if (m_last_button_x == re.x_root && m_last_button_y == re.y_root) { - Fluxbox::instance()->keys()->doAction(re.type, re.state, re.button, Keys::ON_WINDOW, &winClient(), re.time); - } + Fluxbox::instance()->keys()->doAction(re.type, re.state, re.button, + context, &winClient(), re.time); } }