summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ralls <jralls@ceridwen.us>2023-05-09 15:39:10 -0700
committerJohn Ralls <jralls@ceridwen.us>2023-05-09 15:39:10 -0700
commit32e5c1821352e034c946356576b62811d95e26e7 (patch)
treec489816f6edbd37829389c22cffa94fc41b429f2
parentacb183ef7cad875c4b0806a8dd6690f3d7ee784b (diff)
downloadgtk+-32e5c1821352e034c946356576b62811d95e26e7.tar.gz
[quartz] Pad both the content rect and the window width.
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.
-rw-r--r--gdk/quartz/GdkQuartzNSWindow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/quartz/GdkQuartzNSWindow.c b/gdk/quartz/GdkQuartzNSWindow.c
index 5a546891aa..6a3d2919c1 100644
--- a/gdk/quartz/GdkQuartzNSWindow.c
+++ b/gdk/quartz/GdkQuartzNSWindow.c
@@ -245,7 +245,10 @@
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;