summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2006-06-19 12:57:16 (GMT)
committersimonb <simonb>2006-06-19 12:57:16 (GMT)
commitaaf3651830be41b344696d6d0bdfaa8960e01bc5 (patch)
tree34f9a2500bc082a869676af26b83bc4da3437a4f
parent0fbe4c728d9be38fb63a980e9f88b0a51063ed4c (diff)
downloadfluxbox_lack-aaf3651830be41b344696d6d0bdfaa8960e01bc5.zip
fluxbox_lack-aaf3651830be41b344696d6d0bdfaa8960e01bc5.tar.bz2
try ignoring NotifyUngrab to fix focus revert issues when closing
unmanaged windows that grab pointer
-rw-r--r--ChangeLog4
-rw-r--r--src/Window.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e01d40..ce97c12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0rc2: 2Changes for 1.0rc2:
3*06/06/19: 3*06/06/19:
4 * Try ignoring NotifyUngrab EnterNotify events for focus (Simon)
5 - should fix incorrect focus reverts when menus etc closed with
6 mouse focus, but possibly have side effects, do tell...)
7 Window.cc
4 * Fix menu placement issue with (vertical) xinerama (Simon) 8 * Fix menu placement issue with (vertical) xinerama (Simon)
5 - note, doesn't fix "submenus open on wrong screen" issue, that requires 9 - note, doesn't fix "submenus open on wrong screen" issue, that requires
6 some more serious data movement. 10 some more serious data movement.
diff --git a/src/Window.cc b/src/Window.cc
index 13167e7..7703f96 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3013,7 +3013,7 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) {
3013void FluxboxWindow::enterNotifyEvent(XCrossingEvent &ev) { 3013void FluxboxWindow::enterNotifyEvent(XCrossingEvent &ev) {
3014 3014
3015 // ignore grab activates, or if we're not visible 3015 // ignore grab activates, or if we're not visible
3016 if (ev.mode == NotifyGrab || 3016 if (ev.mode == NotifyGrab || ev.mode == NotifyUngrab ||
3017 !isVisible()) { 3017 !isVisible()) {
3018 return; 3018 return;
3019 } 3019 }