Skip to content
  • Vlad Zahorodnii's avatar
    wayland: Explicitly initialize surface size to 0 · 00df0a70
    Vlad Zahorodnii authored
    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.
    
    BUG: 454535
    00df0a70