summaryrefslogtreecommitdiffstats
path: root/x11vnc/userinput.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/userinput.c')
-rw-r--r--x11vnc/userinput.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x11vnc/userinput.c b/x11vnc/userinput.c
index 1a50a03..2fd53c7 100644
--- a/x11vnc/userinput.c
+++ b/x11vnc/userinput.c
@@ -373,6 +373,7 @@ static void parse_wireframe_str(char *wf) {
Colormap cmap;
if (dpy && (bpp == 32 || bpp == 16)) {
#if !NO_X11
+ X_LOCK;
cmap = DefaultColormap (dpy, scr);
if (XParseColor(dpy, cmap, str, &cdef) &&
XAllocColor(dpy, cmap, &cdef)) {
@@ -389,6 +390,7 @@ static void parse_wireframe_str(char *wf) {
wireframe_shade = n;
ok = 1;
}
+ X_UNLOCK;
#else
r = g = b = 0;
cmap = 0;
OpenPOWER on IntegriCloud