Update X11Grabber.cpp

Former-commit-id: ab34a0615e2233322bc2260f297130e30857ac24
This commit is contained in:
Paulchen-Panther 2016-01-21 16:51:20 +01:00
parent bfa4185b9a
commit 93f2b8b65f

View File

@ -77,6 +77,8 @@ bool X11Grabber::Setup()
Image<ColorRgb> & X11Grabber::grab()
{
updateScreenDimensions();
XShmGetImage(_x11Display, _window, _xImage, _cropLeft, _cropTop, 0x00FFFFFF);
if (_xImage == nullptr)
{