gtk+ r22208 - in trunk: . gdk/x11



Author: matthiasc
Date: Sat Jan 24 21:29:36 2009
New Revision: 22208
URL: http://svn.gnome.org/viewvc/gtk+?rev=22208&view=rev

Log:
Don't update blank cursors


Modified:
   trunk/ChangeLog
   trunk/gdk/x11/gdkcursor-x11.c

Modified: trunk/gdk/x11/gdkcursor-x11.c
==============================================================================
--- trunk/gdk/x11/gdkcursor-x11.c	(original)
+++ trunk/gdk/x11/gdkcursor-x11.c	Sat Jan 24 21:29:36 2009
@@ -50,10 +50,10 @@
 static guint theme_serial = 0;
 
 /* cursor_cache holds a cache of non-pixmap cursors to avoid expensive 
- * libXcursor searches, cursors are added to it but never removed. We make 
- * the assumption that since there are a small number of GdkDisplay's and 
- * a small number of cursor's that this list will stay small enough
- * not to be a problem.
+ * libXcursor searches, cursors are added to it but only removed when
+ * their display is closed. We make the assumption that since there are 
+ * a small number of display's and a small number of cursor's that this 
+ * list will stay small enough not to be a problem.
  */
 static GSList* cursor_cache = NULL;
 
@@ -575,6 +575,9 @@
 
   if (private->xcursor != None)
     {
+      if (cursor->type == GDK_BLANK_CURSOR)
+        return;
+
       if (cursor->type == GDK_CURSOR_IS_PIXMAP)
 	{
 	  if (private->name)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]