Merge pull request #514 from oCanna/fix/hyperion-x11

Update screen dimensions only if they really change
This commit is contained in:
Rick164
2018-10-25 22:29:40 +02:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -119,7 +119,6 @@ int X11Grabber::grabFrame(Image<ColorRgb> & image, bool forceUpdate)
{
if (!_enabled) return 0;
if (forceUpdate)
updateScreenDimensions(forceUpdate);
if (_XRenderAvailable && !_useXGetImage)

View File

@@ -36,7 +36,7 @@ bool X11Wrapper::displayInit()
void X11Wrapper::capture()
{
_grabber.grabFrame(_screenshot, true);
_grabber.grabFrame(_screenshot, false);
emit sig_screenshot(_screenshot);
}