diff src/skins/ui_dock.c @ 3108:9978be206b93

Clean up some of the roll-up code so that it no longer causes problems with metacity/xfwm4. (How? I don't know.)
author John Lindgren <john.lindgren@tds.net>
date Thu, 30 Apr 2009 18:23:44 -0400
parents f7613eafe9f0
children 8b97f9560dc3
line wrap: on
line diff
--- a/src/skins/ui_dock.c	Thu Apr 30 18:14:57 2009 -0400
+++ b/src/skins/ui_dock.c	Thu Apr 30 18:23:44 2009 -0400
@@ -325,10 +325,9 @@
     hints.min_height = new_h;
     hints.max_width = new_w;
     hints.max_height = new_h;
-
-    gdk_window_resize(GTK_WIDGET(widget)->window, new_w, new_h);
-    gdk_window_set_geometry_hints(GTK_WIDGET(widget)->window, &hints,
-                                  GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
+    gtk_window_resize (widget, new_w, new_h);
+    gtk_window_set_geometry_hints (widget, 0, & hints,
+     GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
 }
 
 void
@@ -414,7 +413,6 @@
     }
     g_list_free(slist);
     free_docked_list(docked_list);
-    gtk_window_move(widget, x, y + off_y - (new_h - h));
     dock_window_resize(widget, w, new_h, w, h);
 }