Skip to content

Commit b2dddb7

Browse files
committed
[GTK] Gtk 4 don't have the concept of window hints
It's GTK 3 (even X11) concept that Wayland doesn't have - "windows are windows". See https://discourse.gnome.org/t/replacing-gtk-window-set-type-hint-in-gtk4/22599/2 for explanation from developers.
1 parent b47c5fc commit b2dddb7

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,9 @@ void createHandle (int index) {
828828
gtk_container_set_border_width(shellHandle, 1);
829829
}
830830
if ((style & SWT.TOOL) != 0) {
831-
GTK3.gtk_window_set_type_hint(shellHandle, GDK.GDK_WINDOW_TYPE_HINT_UTILITY);
831+
if (!GTK.GTK4) {
832+
GTK3.gtk_window_set_type_hint(shellHandle, GDK.GDK_WINDOW_TYPE_HINT_UTILITY);
833+
}
832834
}
833835
if ((style & SWT.NO_TRIM) != 0) {
834836
GTK.gtk_window_set_decorated(shellHandle, false);

0 commit comments

Comments
 (0)