[quartz] Pad both the content rect and the window width.
authorJohn Ralls <jralls@ceridwen.us>
Tue, 9 May 2023 22:39:10 +0000 (15:39 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Tue, 9 May 2023 22:39:10 +0000 (15:39 -0700)
Otherwise the rastering gets messed up and popup windows get badly
truncated lengthwise on non-Retina monitors when there are both
Retina and non-Retina monitors.

gdk/quartz/GdkQuartzNSWindow.c

index 5a546891aa48608ce6b410b97f050c814712e70b..6a3d2919c16b979982afb87fc335700afbe603ed 100644 (file)
   window->height = content_rect.size.height;
 
   if(window->width % align)
-    content_rect.size.width += align - window->width % align;
+    {
+      window->width += align - window->width % align;
+      content_rect.size.width = window->width;
+    }
 
   content_rect.origin.x = 0;
   content_rect.origin.y = 0;