graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY This supports "grabbing" the pointer on right ctrl key just like on X11. If the Wayland server supports pointer constraints protocol, the nested Wayland compositor creates a confined pointer if the right ctrl key is pressed. On another right ctrl press the (active) constraint gets removed again. To indicate the current state the window title gets updated. This also implements window title support for the first time. This change implement https://phabricator.kde.org/T4604. TEST PLAN Tested with a modified KWin with server-side pointer constraints support REPOSITORY rKWIN KWin BRANCH wayland-platform-confined-pointer REVISION DETAIL https://phabricator.kde.org/D3488 AFFECTED FILES plugins/platforms/wayland/wayland_backend.cpp plugins/platforms/wayland/wayland_backend.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas