graesslin created this revision. graesslin added reviewers: Plasma on Wayland, KWin. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY For XWayland windows the window might be activated before the Wayland Surface is set for it. Thus the keyboard focus is not passed to the window. Only on the next activate after the window got created the window got keyboard focus. This change addresses this problem by emitting a signal from Toplevel when the surface changes. The KeyboardInput listens to this signal for the active client and updates keyboard focus again if the surface changes. Thus keyboard focus is properly passed to XWayland windows. TEST PLAN Test case which creates an X11 window is adjusted to verify the condition. REPOSITORY rKWIN KWin BRANCH update-keyboard-focus-x11-5.7 REVISION DETAIL https://phabricator.kde.org/D2009 AFFECTED FILES autotests/wayland/plasmawindow_test.cpp keyboard_input.cpp keyboard_input.h toplevel.cpp toplevel.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #plasma_on_wayland, #kwin Cc: plasma-devel, kwin, hardening, jensreuterberg, sebas
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel