[server] Send frame event instead of flush on relative pointer motion

Authored by romangg on May 31 2018, 10:28 PM.

Description

[server] Send frame event instead of flush on relative pointer motion

Summary:
This solves for me not working relative pointer motion with grab/lock in
Xwayland applications.

Looking at the Xwayland code it is clear, that it expects a frame event on
wl_pointer versions 5 and above after relative motion events. wl_pointer
version 5 support was added to KWayland in b6bd28ab.

If the cursor is locked no absolute motion events are sent. In this case to
make sure relative motion events are processed by the client, send the frame
event after every relative motion.

BUG: 395815

Test Plan: Manually with Neverball in Xwayland mode.

Reviewers: Plasma, KWin, Frameworks, davidedmundson

Reviewed By: Plasma, KWin, davidedmundson

Subscribers: davidedmundson, kde-frameworks-devel

Tags: Frameworks

Maniphest Tasks: T8923

Differential Revision: https://phabricator.kde.org/D13257

Details

Committed
romanggJun 26 2018, 2:35 PM
Reviewer
Plasma
Differential Revision
D13257: [server] Send frame event instead of flush on relative pointer motion
Parents
R127:64ce88d4fc3d: Fix XDGV6 popup test
Branches
Unknown
Tags
Unknown