diff src/statusicon/si_ui.c @ 456:2e0b55117302 trunk

[svn] - status icon plugin: better logic for KWin workaround
author giacomo
date Wed, 17 Jan 2007 08:52:04 -0800
parents f001b217c88b
children d124034ebea3
line wrap: on
line diff
--- a/src/statusicon/si_ui.c	Wed Jan 17 08:46:53 2007 -0800
+++ b/src/statusicon/si_ui.c	Wed Jan 17 08:52:04 2007 -0800
@@ -210,7 +210,7 @@
     if ( screen != NULL )
       wmname = (gchar*)gdk_x11_screen_get_window_manager_name( screen );
   }
-  else if ( ( size > 22 ) && ( !strcmp("KWin",wmname) ) )
+  if ( ( size > 22 ) && ( wmname != NULL ) && ( !strcmp("KWin",wmname) ) )
     size = 22;
 
   si_pixbuf = gdk_pixbuf_new_from_xpm_data( (const char**)si_xpm );