head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.20 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.18 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.16 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.14 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.12 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.10 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.8 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.6 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.4 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.2 pkgsrc-2023Q4-base:1.1; locks; strict; comment @# @; 1.1 date 2023.10.11.13.29.17; author bouyer; state Exp; branches; next ; commitid ugtvsyYJd0FO8dIE; desc @@ 1.1 log @Add swt version 4.21 SWT is the software component that delivers native widget functionality for the Eclipse platform in an operating system independent manner. This package provides SWT without requiring a full download and build of Eclipse. @ text @$NetBSD: $ --- org/eclipse/swt/widgets/Shell.java.orig 2021-09-06 01:22:24 UTC +++ org/eclipse/swt/widgets/Shell.java @@@@ -1507,6 +1507,8 @@@@ long gtk_button_press_event (long widget, long event) long gtk_configure_event (long widget, long event) { int [] x = new int [1], y = new int [1]; GTK3.gtk_window_get_position (shellHandle, x, y); + int scale = GTK.gtk_widget_get_scale_factor (shellHandle); + x[0] /= scale; y[0] /= scale; if (!isVisible ()) { return 0; //We shouldn't handle move/resize events if shell is hidden. @@@@ -3351,6 +3353,8 @@@@ Rectangle getBoundsInPixels () { // TODO: GTK4 GtkWindow no longer has the ability to get position } else { GTK3.gtk_window_get_position (shellHandle, x, y); + int scale = GTK.gtk_widget_get_scale_factor (shellHandle); + x[0] /= scale; y[0] /= scale; } } else { if (GTK.GTK4) { @