changeset 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 f5ed9a6ad3f1
files ChangeLog src/statusicon/si_ui.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 17 08:46:53 2007 -0800
+++ b/ChangeLog	Wed Jan 17 08:52:04 2007 -0800
@@ -1,3 +1,10 @@
+2007-01-17 16:46:53 +0000  Giacomo Lozito <james@develia.org>
+  revision [994]
+  - status icon plugin: added a workaround to handle situations where KWin doesn't give a correct size for tray icons
+  trunk/src/statusicon/si_ui.c |   11 +++++++++++
+  1 file changed, 11 insertions(+)
+
+
 2007-01-17 16:27:05 +0000  Giacomo Lozito <james@develia.org>
   revision [992]
   - use xmms_show_message for the about box
--- 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 );