Skip to content

Client: do not empty clipboard when a new popup/window is opened

Méven Car requested to merge meven/qtwayland:backport into kde/5.15

QPlatformSurface relates to the platform window, not the wl_surface. The events are already emitted by QPlatformWindow on create/destroy.

To preserve compatibility for a previous KDE version it was faked to emit the events when the wl_surface is created/hidden to keep behavior. This is no longer necessary, and it has caused multiple errors, the latest being a crash when switching between sub-menus with the Sway compositor.

[ChangeLog][QPA plugin] QWaylandWindow no longer sends fake SurfaceCreated/Destroyed events. Use expose events to be notified when a Wayland surface appears.

Task-number: QTBUG-76324 Fixes: QTBUG-81952 Change-Id: I2f003bc9da85f032a0053677fd281152099fc9eb Reviewed-by: Paul Olav Tvete paul.tvete@qt.io Reviewed-by: Tor Arne Vestbø tor.arne.vestbo@qt.io Reviewed-by: David Edmundson davidedmundson@kde.org (cherry picked from commit cd21404f) Reviewed-by: Volker Hilsheimer volker.hilsheimer@qt.io

Needs !18 (merged)

Merge request reports