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:
parent
748c826af4
commit
985d0973a8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue