forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
88c4d06973
commit
f7cc4abbad
@ -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.
|
||||
*
|
||||
**/
|
||||
void
|
||||
*/
|
||||
void
|
||||
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)
|
||||
info->mask &= ~(GDK_HINT_BASE_SIZE | GDK_HINT_RESIZE_INC);
|
||||
|
||||
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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user