summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-05-04 17:52:49 +0200
committerPierre Ossman <ossman@cendio.se>2016-05-04 17:52:49 +0200
commit9927d25316f7e56e5ce5083d19e638214a57fdfd (patch)
treea761e33e11ef31e0f2574f983c1e1cb30d13c269
parent919ae4572ceef9c0368fec88734ea075ffa1c962 (diff)
downloadtigervnc-9927d25316f7e56e5ce5083d19e638214a57fdfd.tar.gz
tigervnc-9927d25316f7e56e5ce5083d19e638214a57fdfd.zip
Properly reference ShmCompletion event index
-rw-r--r--vncviewer/X11PixelBuffer.cxx2
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;