From 75d80f22df12e2b4967d1fef120c160f9632ff97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Tue, 30 Sep 2025 18:51:39 +0300 Subject: [PATCH] [GTK4] Fix Test*Shell.test_setSizeCustomResize test failure Translating coordinates from client area to GtkWindow for Gtk 4.x made the wrong assumption that it should reduce allocation.height with the offset (header/titlebar height) which makes no sense as it shrinks the window vertically. --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java | 1 - 1 file changed, 1 deletion(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 5d72f5e1f29..e6efbc73db8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -1171,7 +1171,6 @@ void forceResize (int width, int height) { if (validTranslation && !isMappedToPopup()) { allocation.x += window_offset_x[0]; allocation.y += window_offset_y[0]; - allocation.height -= window_offset_y[0]; } } else { int [] dest_x = new int[1];