mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-5637 Linux: force release grabs before doing _NET_WM_MOVERESIZE.
This commit is contained in:
@@ -532,6 +532,11 @@ final class XNETProtocol extends XProtocol implements XStateProtocol, XLayerProt
|
||||
msg.set_data(3, button);
|
||||
msg.set_data(4, 0);
|
||||
|
||||
// Though we already did setGrab(false) before, this may sometimes be not enough.
|
||||
// Presumably pointer may be grabbed automatically by a button press,
|
||||
// so release grabs again here, otherwise it wouldn't work on Xorg.
|
||||
XlibWrapper.XUngrabPointer(XToolkit.getDisplay(), XConstants.CurrentTime);
|
||||
XlibWrapper.XUngrabKeyboard(XToolkit.getDisplay(), XConstants.CurrentTime);
|
||||
XlibWrapper.XSendEvent(XToolkit.getDisplay(),
|
||||
XToolkit.getDefaultRootWindow(),
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user