mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 01:19:28 +01:00
JBR-9656 Wayland: toFront() does not work on KDE Plasma 6.5.2
KWin does not accept the serial number from a "keyboard enter" event in a window activation request, while a recent input event serial is OK. Gnome, however, requires the "keyboard enter" event serial.
This commit is contained in:
@@ -1115,7 +1115,7 @@ public class WLComponentPeer implements ComponentPeer, WLSurfaceSizeListener {
|
||||
}
|
||||
|
||||
private static long getSerialForActivation() {
|
||||
long serial = WLToolkit.getInputState().keyboardEnterSerial(); // a focus event
|
||||
long serial = WLToolkit.isKDE() ? 0 : WLToolkit.getInputState().keyboardEnterSerial(); // a focus event
|
||||
if (serial == 0) { // may have just left one surface and not yet entered another
|
||||
serial = WLToolkit.getInputState().keySerial(); // an input event
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user