try ignoring NotifyUngrab to fix focus revert issues when closing

unmanaged windows that grab pointer
This commit is contained in:
simonb 2006-06-19 12:57:16 +00:00
parent 0fbe4c728d
commit aaf3651830
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,10 @@
(Format: Year/Month/Day)
Changes for 1.0rc2:
*06/06/19:
* Try ignoring NotifyUngrab EnterNotify events for focus (Simon)
- should fix incorrect focus reverts when menus etc closed with
mouse focus, but possibly have side effects, do tell...)
Window.cc
* Fix menu placement issue with (vertical) xinerama (Simon)
- note, doesn't fix "submenus open on wrong screen" issue, that requires
some more serious data movement.

View file

@ -3013,7 +3013,7 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) {
void FluxboxWindow::enterNotifyEvent(XCrossingEvent &ev) {
// ignore grab activates, or if we're not visible
if (ev.mode == NotifyGrab ||
if (ev.mode == NotifyGrab || ev.mode == NotifyUngrab ||
!isVisible()) {
return;
}