changeset 3898:7f5a2fd9dcc0

Fix a skin size boundary issue.
author William Pitcock <nenolod@atheme.org>
date Tue, 06 Nov 2007 11:41:50 -0600
parents edd7da52849f
children 2c768d923bcf
files src/audacious/ui_main.c
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_main.c	Thu Nov 01 19:50:20 2007 -0500
+++ b/src/audacious/ui_main.c	Tue Nov 06 11:41:50 2007 -0600
@@ -694,23 +694,20 @@
         cfg.player_shaded ? 3 : bmp_active_skin->properties.mainwin_close_y);
 
     mainwin_refresh_visible();
+
     /* window size, mainwinWidth && mainwinHeight properties */
     if (bmp_active_skin->properties.mainwin_height && bmp_active_skin->properties.mainwin_width)
     {
-    gint width, height;
-
-    gdk_window_get_size(mainwin->window, &width, &height);
-
-        if (width == bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1) &&
-        height == bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1))
-            return;
+        gint width, height;
+
+        gdk_window_get_size(mainwin->window, &width, &height);
 
         dock_window_resize(GTK_WINDOW(mainwin), cfg.player_shaded ? MAINWIN_SHADED_WIDTH * (cfg.doublesize + 1) : bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1),
         cfg.player_shaded ? MAINWIN_SHADED_HEIGHT * (cfg.doublesize + 1) : bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1),
         bmp_active_skin->properties.mainwin_width * (cfg.doublesize + 1),
         bmp_active_skin->properties.mainwin_height * (cfg.doublesize + 1));
 
-    gdk_flush();
+        gdk_flush();
     }
 }