Fix the osd re-placement on X11
ClosedPublic

Authored by graesslin on Dec 26 2016, 10:13 AM.

Details

Summary

6383f8304711719fe22371474138efc144adc750 introduced a regression hitting
an assert on X11 when an osd window is added.

This change tries to address this by adding a GeometryUpdateBlocker
around the change. The hit assertion is:

pendingGeometryUpdate() == PendingGeometryNone ||
areGeometryUpdatesBlocked()

By using a GeometryUpdateBlocker the second condition becomes true
and we no longer hit the condition.

BUG: 374038

Test Plan

Manual tested both on X11 and Wayland, Wayland autotest
still passes

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 9362.Dec 26 2016, 10:13 AM
graesslin retitled this revision from to Fix the osd re-placement on X11.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma.
Restricted Application added a project: KWin. · View Herald TranscriptDec 26 2016, 10:13 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Dec 27 2016, 4:32 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Dec 27 2016, 4:32 PM
This revision was automatically updated to reflect the committed changes.