From: Dana Jansens Date: Sat, 19 May 2007 21:49:45 +0000 (+0000) Subject: for startup notification, use the left ptr+watch if it is available, and fall back... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ed4d0ca31a9c1c6c815cb87a058bb1d36a0888c1;p=chaz%2Fopenbox 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 --- diff --git a/openbox/misc.h b/openbox/misc.h index 1da94b34..f55feed9 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 996cb227..7270379e 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 6551da81..4ad46af7 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));