[Differential] [Request, 29 lines] D2009: Update Keyboard focus when the Surface of the active client changes

graesslin (Martin Gräßlin) noreply at phabricator.kde.org
Sun Jun 26 14:07:31 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160626/bcde157c/attachment.html>


More information about the Plasma-devel mailing list