diff options
author | Pierre Ossman <ossman@cendio.se> | 2016-05-04 17:52:49 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2016-05-04 17:52:49 +0200 |
commit | 9927d25316f7e56e5ce5083d19e638214a57fdfd (patch) | |
tree | a761e33e11ef31e0f2574f983c1e1cb30d13c269 | |
parent | 919ae4572ceef9c0368fec88734ea075ffa1c962 (diff) | |
download | tigervnc-9927d25316f7e56e5ce5083d19e638214a57fdfd.tar.gz tigervnc-9927d25316f7e56e5ce5083d19e638214a57fdfd.zip |
Properly reference ShmCompletion event index
-rw-r--r-- | vncviewer/X11PixelBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/X11PixelBuffer.cxx b/vncviewer/X11PixelBuffer.cxx index 3c41490a..ce5c4d82 100644 --- a/vncviewer/X11PixelBuffer.cxx +++ b/vncviewer/X11PixelBuffer.cxx @@ -252,7 +252,7 @@ int X11PixelBuffer::handleSystemEvent(void* event, void* data) xevent = (XEvent*)event; assert(xevent); - if (xevent->type != XShmGetEventBase(fl_display)) + if (xevent->type != XShmGetEventBase(fl_display) + ShmCompletion) return 0; shmevent = (XShmCompletionEvent*)event; |