Linux: Move input grab update from createWindow to when MapNotify is received. This avoid any input grabbing being ignored because the window is not yet mapped

This commit is contained in:
Elias Naur 2007-05-27 13:17:35 +00:00
parent 748c826af4
commit 985d0973a8
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,6 @@ final class LinuxDisplay implements DisplayImplementation {
grab = false; grab = false;
minimized = false; minimized = false;
dirty = true; dirty = true;
updateInputGrab();
} finally { } finally {
peer_info.unlock(); peer_info.unlock();
} }
@ -615,6 +614,7 @@ final class LinuxDisplay implements DisplayImplementation {
case LinuxEvent.MapNotify: case LinuxEvent.MapNotify:
dirty = true; dirty = true;
minimized = false; minimized = false;
updateInputGrab();
break; break;
case LinuxEvent.UnmapNotify: case LinuxEvent.UnmapNotify:
dirty = true; dirty = true;