[Differential] [Request, 296 lines] D2091: [server] Properly send a selection clear prior to keyboard focus enter
graesslin (Martin Gräßlin)
noreply at phabricator.kde.org
Tue Jul 5 09:01:56 UTC 2016
graesslin created this revision.
graesslin added a reviewer: Plasma on Wayland.
Restricted Application added a subscriber: plasma-devel.
Restricted Application added a project: Plasma on Wayland.
REVISION SUMMARY
When setting the keyboard focus the server needs also to send the current
selection to the client. So far KWayland only sent the selection if it was
set. That is if the last focused client cleared the selection it was not
updated and the client might have had an outdated selection.
To prevent this situation the server now explicitly sends the clear to the
client on enter if there is no selection. Also if the selection is cleared,
the SeatInterface now unsets it's current selection to make sure that the
next focused keyboard will get the clear selection sent.
TEST PLAN
Existing test case adjusted and a new test case added which
simulates the interaction of two clients.
REPOSITORY
rKWAYLAND KWayland
BRANCH
selection-clear-on-focus
REVISION DETAIL
https://phabricator.kde.org/D2091
AFFECTED FILES
autotests/client/CMakeLists.txt
autotests/client/test_selection.cpp
autotests/client/test_wayland_seat.cpp
src/server/seat_interface.cpp
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: graesslin, #plasma_on_wayland
Cc: plasma-devel, jensreuterberg, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160705/a14d6beb/attachment.html>
More information about the Plasma-devel
mailing list