Diffusion KWin 32939fa7b522

Fix regression for timestamp handling for Xwayland windows

Authored by graesslin on May 6 2017, 5:52 PM.

Description

Fix regression for timestamp handling for Xwayland windows

Summary:
Change 0bec9ad7337536e319c17c5684d97e1156399fdb introduced a regrssion
on Wayland. On Wayland getTimestamp always returns 0, thus the X11
timestamp gets reset again and again. This results in broken interaction
for Xwayland windows as the broken unit tests show.

This change addresses the regression by ignoring a value of 0.
It means the addressed bug is still present on Wayland for X11 windows
as the timestamp doesn't get updated properly. This requires further
changes.

Test Plan: TestShade works again, testX11TimestampUpdate still works

Reviewers: KWin, Plasma

Subscribers: plasma-devel, kwin

Tags: KWin

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

Details

Committed
graesslinMay 6 2017, 5:54 PM
Differential Revision
D5731: Fix regression for timestamp handling for Xwayland windows
Parents
R108:0bec9ad73375: Improve the x11 timestamp handling
Branches
Unknown
Tags
Unknown