From 09f63f0395fe103fd1442b2b012b98f2cda2dcd3 Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 18 Nov 2009 18:25:36 -0500 Subject: x11vnc: -findauth, -auth guess, & etc. --- x11vnc/cursor.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'x11vnc/cursor.c') diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c index 2409872..7ac0302 100644 --- a/x11vnc/cursor.c +++ b/x11vnc/cursor.c @@ -41,6 +41,7 @@ so, delete this exception statement from your version. #include "macosx.h" int xfixes_present = 0; +int xfixes_first_initialized = 0; int use_xfixes = 1; int got_xfixes_cursor_notify = 0; int cursor_changes = 0; @@ -984,6 +985,7 @@ static void tree_descend_cursor(int *depth, Window *w, win_str_info_t *winfo) { void initialize_xfixes(void) { #if LIBVNCSERVER_HAVE_LIBXFIXES if (xfixes_present) { + xfixes_first_initialized = 1; X_LOCK; if (use_xfixes) { XFixesSelectCursorInput(dpy, rootwin, @@ -1319,6 +1321,9 @@ static int get_exact_cursor(int init) { if (last_idx) { which = last_idx; } + if (! xfixes_first_initialized) { + return which; + } if (! got_xfixes_cursor_notify && xfixes_base_event_type) { /* try again for XFixesCursorNotify event */ -- cgit v1.2.3