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:
parent
98aa044508
commit
bc29e09d88
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue