Commit 032fa73
committed
[GTK] Fix gdk_monitor_get_scale_factor on Gtk 4 on X11
Fixes a number of "Gdk-CRITICAL **: 14:38:20.208:
gdk_monitor_get_scale_factor: assertion 'GDK_IS_MONITOR (monitor)'
failed" warnings in the console.
This doesn't make SWT fail but it's better to play safe.
See https://gitlab.gnome.org/GNOME/gtk/-/issues/5075 for some background
information.1 parent 15c0a34 commit 032fa73
File tree
2 files changed
+7
-3
lines changed- bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt
- graphics
- widgets
2 files changed
+7
-3
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | | - | |
1103 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1104 | 1108 | | |
1105 | 1109 | | |
1106 | 1110 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2690 | 2690 | | |
2691 | 2691 | | |
2692 | 2692 | | |
2693 | | - | |
| 2693 | + | |
2694 | 2694 | | |
2695 | 2695 | | |
2696 | 2696 | | |
| |||
0 commit comments