From ed4d0ca31a9c1c6c815cb87a058bb1d36a0888c1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 19 May 2007 21:49:45 +0000 Subject: [PATCH] for startup notification, use the left ptr+watch if it is available, and fall back to the pointer instead of the unusable watch if its not --- openbox/misc.h | 1 + openbox/openbox.c | 3 ++- openbox/screen.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openbox/misc.h b/openbox/misc.h index 1da94b3..f55feed 100644 --- a/openbox/misc.h +++ b/openbox/misc.h @@ -23,6 +23,7 @@ typedef enum { OB_CURSOR_NONE, OB_CURSOR_POINTER, + OB_CURSOR_BUSYPOINTER, OB_CURSOR_BUSY, OB_CURSOR_MOVE, OB_CURSOR_NORTH, diff --git a/openbox/openbox.c b/openbox/openbox.c index 996cb22..7270379 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -196,7 +196,8 @@ gint main(gint argc, gchar **argv) /* create available cursors */ cursors[OB_CURSOR_NONE] = None; cursors[OB_CURSOR_POINTER] = load_cursor("left_ptr", XC_left_ptr); - cursors[OB_CURSOR_BUSY] = load_cursor("left_ptr_watch", XC_watch); + cursors[OB_CURSOR_BUSYPOINTER] = load_cursor("left_ptr_watch",XC_left_ptr); + cursors[OB_CURSOR_BUSY] = load_cursor("watch", XC_watch); cursors[OB_CURSOR_MOVE] = load_cursor("fleur", XC_fleur); cursors[OB_CURSOR_NORTH] = load_cursor("top_side", XC_top_side); cursors[OB_CURSOR_NORTHEAST] = load_cursor("top_right_corner", diff --git a/openbox/screen.c b/openbox/screen.c index 6551da8..4ad46af 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -1270,7 +1270,7 @@ void screen_set_root_cursor() { if (sn_app_starting()) XDefineCursor(ob_display, RootWindow(ob_display, ob_screen), - ob_cursor(OB_CURSOR_BUSY)); + ob_cursor(OB_CURSOR_BUSYPOINTER)); else XDefineCursor(ob_display, RootWindow(ob_display, ob_screen), ob_cursor(OB_CURSOR_POINTER)); -- 1.9.1