aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-09-22 18:56:05 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-09-22 19:07:30 (GMT)
commit7d30d0007d4aed25be7c6b636a21a84855cd349d (patch)
tree113e330016dd08c349fd797c44dc4b1049eb6c73 /src
parent507782e5d4e21ca9df9bf774228e373d9c3aef8c (diff)
downloadfluxbox-7d30d0007d4aed25be7c6b636a21a84855cd349d.zip
fluxbox-7d30d0007d4aed25be7c6b636a21a84855cd349d.tar.bz2
"the least oversight", part #2
playing with the side borders I figured that clicking them (after ading them ;-) would freeze the pointer. In addition harden the menu-triggering paths for slit and toolbar. The menu will implicitly grba/release stuff, but in case it fails to show up .... better safe than sorry.
Diffstat (limited to 'src')
-rw-r--r--src/Slit.cc1
-rw-r--r--src/Toolbar.cc1
-rw-r--r--src/Window.cc2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index a7bd50f..122f477 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -965,6 +965,7 @@ void Slit::buttonPressEvent(XButtonEvent &be) {
965 return; 965 return;
966 } 966 }
967 967
968 XAllowEvents(dpy, SyncPointer, CurrentTime);
968 if (!myMenuWasVisible) 969 if (!myMenuWasVisible)
969 screen().placementStrategy().placeAndShowMenu(m_slitmenu, be.x_root, be.y_root, false); 970 screen().placementStrategy().placeAndShowMenu(m_slitmenu, be.x_root, be.y_root, false);
970} 971}
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index f343552..aa9bc12 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -550,6 +550,7 @@ void Toolbar::buttonPressEvent(XButtonEvent &be) {
550 return; 550 return;
551 } 551 }
552 552
553 XAllowEvents(dpy, SyncPointer, CurrentTime);
553 screen() 554 screen()
554 .placementStrategy() 555 .placementStrategy()
555 .placeAndShowMenu(menu(), be.x_root, be.y_root, false); 556 .placeAndShowMenu(menu(), be.x_root, be.y_root, false);
diff --git a/src/Window.cc b/src/Window.cc
index 1e32bd5..664c0a5 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2439,6 +2439,8 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2439 // - refeed the event into the queue so the app or titlebar subwindow gets it 2439 // - refeed the event into the queue so the app or titlebar subwindow gets it
2440 if (be.subwindow) 2440 if (be.subwindow)
2441 XAllowEvents(display, ReplayPointer, CurrentTime); 2441 XAllowEvents(display, ReplayPointer, CurrentTime);
2442 else
2443 XAllowEvents(display, SyncPointer, CurrentTime);
2442 2444
2443 // if nothing was bound via keys-file then 2445 // if nothing was bound via keys-file then
2444 // - raise() if clickRaise is enabled 2446 // - raise() if clickRaise is enabled