• Martin Flöser's avatar
    Make WindowPixmap::isValid virtual and override in concrete implementation · 0bb1f2e7
    Martin Flöser authored
    If a buffer gets destroyed the texture created from it is still valid.
    In such a situation the OpenGLWindowPixmap should return true for isValid
    and not false as it did. Similar in QPainter compositor the pixmap is
    valid if there is an image copied from the buffer.
    This change ensures that for example minimizing an XWayland window
    still has a texture during the minimize animation.
    BUG: 368440
    Test Plan:
    Minimize animation plays for X windows and minimized windows
    are shown in present windows.
    Reviewers: #kwin, #plasma_on_wayland
    Subscribers: plasma-devel, kwin
    Tags: #plasma_on_wayland, #kwin
    Differential Revision: https://phabricator.kde.org/D2724
scene.h 20.5 KB