aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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