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:
parent
749cf798ce
commit
4b97bc481e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue