Commit f7cc4abb authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Avoid ugly seams on half-tiled terminals

Since we're no longer doing geometry widgets, don't send
base size and increments to the window manager anymore either.
This avoids an ugly 2 pixel gap to the right and bottom of half-tiled
terminals under gnome-shell.
parent 88c4d069
......@@ -3994,9 +3994,8 @@ gtk_window_get_geometry_info (GtkWindow *window,
* the user. You can set a minimum and maximum size; allowed resize
* increments (e.g. for xterm, you can only resize by the size of a
* character); aspect ratios; and more. See the #GdkGeometry struct.
gtk_window_set_geometry_hints (GtkWindow *window,
GtkWidget *geometry_widget,
GdkGeometry *geometry,
......@@ -4008,17 +4007,18 @@ gtk_window_set_geometry_hints (GtkWindow *window,
g_return_if_fail (geometry_widget == NULL || GTK_IS_WIDGET (geometry_widget));
info = gtk_window_get_geometry_info (window, TRUE);
if (geometry)
info->geometry = *geometry;
/* We store gravity in priv->gravity not in the hints. */
info->mask = geom_mask & ~(GDK_HINT_WIN_GRAVITY);
if (geometry_widget)
if (geom_mask & GDK_HINT_WIN_GRAVITY)
gtk_window_set_gravity (window, geometry->win_gravity);
gtk_window_set_gravity (window, geometry->win_gravity);
gtk_widget_queue_resize_no_redraw (GTK_WIDGET (window));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment