Skip to content

KWin 6 ScreenShotDBusInterface2: Fix valid capture area with 0 width or height

Noah Davis requested to merge work/ndavis/screenshot-area-isempty-6 into master

QRect::isEmpty is only true when size is negative, unlike QSize::isEmpty and QRectF::isEmpty. Use QRectF, QSizeF or QSize to check if a rectangle is empty, not QRect.

Merge request reports