changeset 2221:b4a2a7197c05

statusicon: quick workaround for Xfce4
author Eugene Zagidullin <e.asphyx@gmail.com>
date Fri, 07 Dec 2007 21:50:55 +0300
parents 0cb173caf393
children 3e2ff1758809
files src/statusicon/si_ui.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/statusicon/si_ui.c	Fri Dec 07 21:35:28 2007 +0300
+++ b/src/statusicon/si_ui.c	Fri Dec 07 21:50:55 2007 +0300
@@ -340,8 +340,9 @@
     GdkScreen *screen = gdk_screen_get_default();
     if ( screen != NULL )
       wmname = (gchar*)gdk_x11_screen_get_window_manager_name( screen );
+      AUDDBG("WM name: %s\n", wmname);
   }
-  if ( ( size > 22 ) && ( wmname != NULL ) && ( !strcmp("KWin",wmname) ) )
+  if ( ( size <= 1 || size > 22 ) && ( wmname != NULL ) && ( !strcmp("KWin",wmname) || !strcmp("Xfwm4",wmname) ) )
     size = 22;
 
   si_pixbuf = gdk_pixbuf_new_from_xpm_data( (const char**)si_xpm );