← Back to team overview

ayatana-commits team mailing list archive

[Merge] lp:~bratsche/xsplash/blank-cow-cursor into lp:xsplash

 

Cody Russell has proposed merging lp:~bratsche/xsplash/blank-cow-cursor into lp:xsplash.

    Requested reviews:
    Canonical Desktop Experience Team (canonical-dx-team)
Related bugs:
  #432179 cursor should not show during xsplash startup
  https://bugs.launchpad.net/bugs/432179

-- 
https://code.launchpad.net/~bratsche/xsplash/blank-cow-cursor/+merge/12834
Your team ayatana-commits is subscribed to branch lp:xsplash.
=== modified file 'src/xsplash.c'
--- src/xsplash.c	2009-10-01 20:56:55 +0000
+++ src/xsplash.c	2009-10-03 23:55:19 +0000
@@ -532,6 +532,7 @@
   if (have_xcomposite)
     {
       Window window;
+      GdkCursor *cursor;
 
       gdk_error_trap_push ();
 
@@ -539,6 +540,11 @@
                                            GDK_DRAWABLE_XID (gdk_get_default_root_window ()));
       priv->cow = gdk_window_foreign_new (window);
 
+      cursor = gdk_cursor_new (GDK_BLANK_CURSOR);
+      gdk_window_set_cursor (priv->cow,
+                             cursor);
+      gdk_cursor_unref (cursor);
+
       gdk_flush ();
       gdk_error_trap_pop ();
     }


Follow ups