https://bugs.kde.org/show_bug.cgi?id=415262

Roman Gilg <subd...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://commits.kde.org/kwi
                   |                            |n/ba2c0324d2ef21a5c42ec182e
                   |                            |851a435180b51ac

--- Comment #10 from Roman Gilg <subd...@gmail.com> ---
Git commit ba2c0324d2ef21a5c42ec182e851a435180b51ac by Roman Gilg.
Committed on 23/12/2019 at 22:55.
Pushed by romangilg into branch 'master'.

Reset buffer swap state on stop

Summary:
When the compositor is stopped there might still be a buffer swap ongoing, in
particular when a client blocks compositing on X11.

Depending on the backend the next buffer swap event might be handled in
bufferSwapComplete (Wayland) or not be handled (X11 GLX, since a new
GLX window will be created while the swap event is sent for the old one).

With this patch the buffer swap state is reset on stop such that on later
start no outdated data might create errors  and instead a new repaint can be
triggered with updated data.

Test Plan: Manually on X11 and Wayland.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

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

M  +5    -6    composite.cpp

https://commits.kde.org/kwin/ba2c0324d2ef21a5c42ec182e851a435180b51ac

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to