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
This commit is contained in:
parent
9014cf7c4e
commit
ed4d0ca31a
3 changed files with 4 additions and 2 deletions
|
@ -23,6 +23,7 @@ typedef enum
|
|||
{
|
||||
OB_CURSOR_NONE,
|
||||
OB_CURSOR_POINTER,
|
||||
OB_CURSOR_BUSYPOINTER,
|
||||
OB_CURSOR_BUSY,
|
||||
OB_CURSOR_MOVE,
|
||||
OB_CURSOR_NORTH,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue