plugins/screenshot: Fix monitor screenshots on x11

After some refactoring changes, m_paintedScreen is always the first
output on x11, so it's no longer possible to take screenshots of other
outputs.
This commit is contained in:
Vlad Zahorodnii 2024-04-24 11:37:57 +03:00
parent 98aa044508
commit bc29e09d88

View file

@ -336,7 +336,7 @@ bool ScreenShotEffect::takeScreenShot(const RenderTarget &renderTarget, const Re
bool ScreenShotEffect::takeScreenShot(const RenderTarget &renderTarget, const RenderViewport &viewport, ScreenShotScreenData *screenshot)
{
if (m_paintedScreen && screenshot->screen != m_paintedScreen) {
if (effects->waylandDisplay() && screenshot->screen != m_paintedScreen) {
return false;
}