effects/presentwindows: Fix crash

The present windows effect can crash because a null (0) EffectScreen can
be passed to EffectsHandler::clientArea(), which is a bug.

Use EffectsHandler::virtualScreenGeometry() to get the bounding geometry
of all outputs.

BUG: 449508
This commit is contained in:
Vlad Zahorodnii 2022-02-02 19:00:50 +02:00
parent 749cf798ce
commit 4b97bc481e

View file

@ -1863,7 +1863,7 @@ EffectWindow* PresentWindowsEffect::relativeWindow(EffectWindow *w, int xdiff, i
// TODO: Is it possible to select hidden windows?
EffectWindow* next;
QRect area = effects->clientArea(FullArea, 0, effects->currentDesktop());
QRect area = effects->virtualScreenGeometry();
QRect detectRect;
// Detect across the width of the desktop