[gtk/wip/chergert/quartz4u: 61/116] macos: surface cleanup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u: 61/116] macos: surface cleanup
- Date: Wed, 24 Jun 2020 23:43:49 +0000 (UTC)
commit 625a9cb500764098be676dd4f7bd6ea636e38dac
Author: Christian Hergert <chergert redhat com>
Date: Wed May 20 14:07:17 2020 -0700
macos: surface cleanup
gdk/macos/gdkmacossurface.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 775aaad30c..86b363938f 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -531,18 +531,14 @@ _gdk_macos_surface_set_geometry_hints (GdkMacosSurface *self,
if (geom_mask & GDK_HINT_MIN_SIZE)
min_size = NSMakeSize (geometry->min_width, geometry->min_height);
else
- min_size = NSMakeSize (0, 0);
+ min_size = NSMakeSize (1, 1);
[self->window setContentMinSize:min_size];
if (geom_mask & GDK_HINT_BASE_SIZE) { /* TODO */ }
if (geom_mask & GDK_HINT_RESIZE_INC)
{
- NSSize size;
-
- size.width = geometry->width_inc;
- size.height = geometry->height_inc;
-
+ NSSize size = NSMakeSize (geometry->width_inc, geometry->height_inc);
[self->window setContentResizeIncrements:size];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]