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
1 files changed,
8 insertions(+),
4 deletions(-)
jump to
M
src/Window.cc
→
src/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); } }