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

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/commit/00df0a7019d0 |ma/kwin/commit/4adc1cae7edc
                   |f0bdea2c92079ac41c0d166e972 |fceb4f601cd9ea8689b2885375a
                   |d                           |5

--- Comment #4 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 4adc1cae7edcfceb4f601cd9ea8689b2885375a5 by Vlad Zahorodnii.
Committed on 13/06/2022 at 09:50.
Pushed by vladz into branch 'Plasma/5.25'.

wayland: Explicitly initialize surface size to 0

QSize() will construct an invalid size. An invalid size has width and
height set to -1. In other words, QSize() != QSize(0, 0). This can create
issues when computing the bounding rect of a surface that has invisible
subsurfaces.

For example, if the subsurface rect is QRect(0,0 -1x-1), the top-left
corner of the bounding rect will be affected.

In order to make computation of the bounding rect robust, initialize the
surface size to 0 explicitly.


(cherry picked from commit 00df0a7019d0f0bdea2c92079ac41c0d166e972d)

M  +1    -1    src/wayland/autotests/client/test_wayland_surface.cpp
M  +4    -3    src/wayland/surface_interface.cpp
M  +3    -3    src/wayland/surface_interface_p.h

https://invent.kde.org/plasma/kwin/commit/4adc1cae7edcfceb4f601cd9ea8689b2885375a5

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

Reply via email to