Skip to content

Commit c781f19

Browse files
committed
[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.
1 parent 99aff36 commit c781f19

File tree

1 file changed

+0
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+0
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,6 @@ void forceResize (int width, int height) {
11711171
if (validTranslation && !isMappedToPopup()) {
11721172
allocation.x += window_offset_x[0];
11731173
allocation.y += window_offset_y[0];
1174-
allocation.height -= window_offset_y[0];
11751174
}
11761175
} else {
11771176
int [] dest_x = new int[1];

0 commit comments

Comments
 (0)