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:
Maxim Kartashev
2025-11-20 17:43:40 +04:00
committed by jbrbot
parent 4ecc121a64
commit b9d03f68c4

View File

@@ -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
}