aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-07 22:07:39 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-08-27 07:34:01 (GMT)
commitecdaab5edf619d3cdc7bba9856d5f92068c28c83 (patch)
tree6b2ebd6cb9622bb21912db68fa649e2f11f1dc29
parent08ea27de38a28cc2e9f5eab3bed094fc53d48952 (diff)
downloadfluxbox-ecdaab5edf619d3cdc7bba9856d5f92068c28c83.zip
fluxbox-ecdaab5edf619d3cdc7bba9856d5f92068c28c83.tar.bz2
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
-rw-r--r--src/Window.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc
index a4f6341..56c78c7 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2460,11 +2460,15 @@ void FluxboxWindow::buttonReleaseEvent(XButtonEvent &re) {
2460 stopResizing(); 2460 stopResizing();
2461 else if (m_attaching_tab) 2461 else if (m_attaching_tab)
2462 attachTo(re.x_root, re.y_root); 2462 attachTo(re.x_root, re.y_root);
2463 else if (!frame().tabcontainer().tryButtonReleaseEvent(re)) { 2463 else if (m_last_button_x == re.x_root && m_last_button_y == re.y_root) {
2464 2464 int context = 0;
2465 if (m_last_button_x == re.x_root && m_last_button_y == re.y_root) { 2465 context = frame().getContext(re.subwindow ? re.subwindow : re.window,
2466 Fluxbox::instance()->keys()->doAction(re.type, re.state, re.button, Keys::ON_WINDOW, &winClient(), re.time); 2466 re.x_root, re.y_root);
2467 } 2467 if (!context && re.subwindow)
2468 context = frame().getContext(re.window);
2469
2470 Fluxbox::instance()->keys()->doAction(re.type, re.state, re.button,
2471 context, &winClient(), re.time);
2468 } 2472 }
2469} 2473}
2470 2474