From 1967913e9530139eb355b7b3108bb12314ba47da Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 22 Jan 2006 03:56:23 +0000 Subject: x11vnc: -8to24 opts, use XGetSubImage. fix -threads deadlocks and -rawfb crash --- x11vnc/pointer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'x11vnc/pointer.c') diff --git a/x11vnc/pointer.c b/x11vnc/pointer.c index 9622a7d..b7f73fb 100644 --- a/x11vnc/pointer.c +++ b/x11vnc/pointer.c @@ -411,6 +411,7 @@ static void update_x11_pointer_mask(int mask) { int skip = 0; if (!button_mask) { + X_LOCK; if (get_wm_frame_pos(&px, &py, &x, &y, &w, &h, &frame, &mwin)) { got_wm_frame = 1; @@ -423,6 +424,7 @@ if (debug_scroll > 1) fprintf(stderr, "wm_win: 0x%lx\n", mwin); } else { got_wm_frame = 0; } + X_UNLOCK; } if (got_wm_frame) { if (wireframe && near_wm_edge(x, y, w, h, px, py)) { -- cgit v1.2.1