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
commit 1860f6166c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -119,8 +119,7 @@ int X11Grabber::grabFrame(Image<ColorRgb> & image, bool forceUpdate)
{
if (!_enabled) return 0;
if (forceUpdate)
updateScreenDimensions(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);
}