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
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel