summaryrefslogtreecommitdiffstats
path: root/x11vnc/cursor.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-04 16:09:22 +0000
committerrunge <runge>2006-07-04 16:09:22 +0000
commita7726a6f970f49c2bedac4926aa30de18d96ae41 (patch)
tree79c23911a3acba751461bcdc3db5d6b59364a433 /x11vnc/cursor.c
parent9992160105b0433484bca804d62eb672aff113de (diff)
downloadlibtdevnc-a7726a6f970f49c2bedac4926aa30de18d96ae41.tar.gz
libtdevnc-a7726a6f970f49c2bedac4926aa30de18d96ae41.zip
x11vnc: more -unixpw work. add -license, etc. options
Diffstat (limited to 'x11vnc/cursor.c')
-rw-r--r--x11vnc/cursor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c
index 2c2a763..90b5fe9 100644
--- a/x11vnc/cursor.c
+++ b/x11vnc/cursor.c
@@ -30,6 +30,7 @@ int cursor_shape_updates_clients(rfbScreenInfoPtr s);
int cursor_pos_updates_clients(rfbScreenInfoPtr s);
void cursor_position(int x, int y);
void set_no_cursor(void);
+void set_warrow_cursor(void);
int set_cursor(int x, int y, int which);
int check_x11_pointer(void);
@@ -490,6 +491,7 @@ enum cursor_names {
CURS_DOT,
CURS_ARROW,
+ CURS_WARROW,
CURS_ROOT,
CURS_WM,
CURS_TERM,
@@ -657,6 +659,7 @@ static void setup_cursors(void) {
alt_arrow = 1;
curs_copy(cursors[CURS_ARROW], &cur_arrow); n++;
}
+ curs_copy(cursors[CURS_WARROW], &cur_arrow2); n++;
curs_copy(cursors[CURS_ROOT], &cur_root); n++;
curs_copy(cursors[CURS_WM], &cur_fleur); n++;
@@ -1744,6 +1747,10 @@ void set_no_cursor(void) {
set_rfb_cursor(CURS_EMPTY);
}
+void set_warrow_cursor(void) {
+ set_rfb_cursor(CURS_WARROW);
+}
+
int set_cursor(int x, int y, int which) {
static int last = -1;
int changed_cursor = 0;