summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2002-07-10 20:24:24 +0000
committerGeorge Lebl <jirka@src.gnome.org>2002-07-10 20:24:24 +0000
commit43df99216994a12e15cb0340f16318759e50e641 (patch)
tree0b62e6b47e206b13d778381712a214335eb18295 /daemon
parentec9ca3124dd2bb6de8ff0b4116e8994f4230ef61 (diff)
downloadgdm-43df99216994a12e15cb0340f16318759e50e641.tar.gz
When we first open the X connection, set the cursor to a busy cursor
Wed Jul 10 13:36:03 2002 George Lebl <jirka@5z.com> * daemon/slave.c, gui/gdmlogin.c, gui/greeter/greeter.c, gui/gdmchooser.c: When we first open the X connection, set the cursor to a busy cursor (watch) and also don't set the pointer cursor in the greeters until we are actually ready. Also do cursor voodoo in the chooser.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/slave.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/daemon/slave.c b/daemon/slave.c
index 83519655..2d12a9e0 100644
--- a/daemon/slave.c
+++ b/daemon/slave.c
@@ -502,6 +502,16 @@ gdm_slave_run (GdmDisplay *display)
}
}
+ /* Set the busy cursor */
+ if (d->dsp != NULL) {
+ Cursor xcursor = XCreateFontCursor (d->dsp, GDK_WATCH);
+ XDefineCursor (d->dsp,
+ DefaultRootWindow (d->dsp),
+ xcursor);
+ XFreeCursor (d->dsp, xcursor);
+ XSync (d->dsp, False);
+ }
+
/* Just a race avoiding sleep, probably not necessary though,
* but doesn't hurt anything */
if ( ! d->handled)