summaryrefslogtreecommitdiffstats
path: root/x11vnc/pointer.c
diff options
context:
space:
mode:
authorrunge <runge>2006-01-22 03:56:23 +0000
committerrunge <runge>2006-01-22 03:56:23 +0000
commit1967913e9530139eb355b7b3108bb12314ba47da (patch)
treef6bcde8135b62c53d9c9a99cf4a655a6bad86b74 /x11vnc/pointer.c
parent17e6b6a2bf6def6b380bee2fcc0fb9e8254518f4 (diff)
downloadlibtdevnc-1967913e9530139eb355b7b3108bb12314ba47da.tar.gz
libtdevnc-1967913e9530139eb355b7b3108bb12314ba47da.zip
x11vnc: -8to24 opts, use XGetSubImage. fix -threads deadlocks and -rawfb crash
Diffstat (limited to 'x11vnc/pointer.c')
-rw-r--r--x11vnc/pointer.c2
1 files changed, 2 insertions, 0 deletions
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)) {