mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
wayland: Small fixup to monitor size handling
The first time this function is called, has_xdg_output() returns true, but haven't yet received all the xdg-output events, so wait for that to be done. Otherwise, the logical size is 0, and nothing useful comes from that.
This commit is contained in:
parent
09373bf7ee
commit
51b04c5007
@ -1565,7 +1565,7 @@ apply_monitor_change (GdkWaylandMonitor *monitor)
|
||||
GdkRectangle logical_geometry;
|
||||
gboolean needs_scaling = FALSE;
|
||||
|
||||
if (monitor_has_xdg_output(monitor))
|
||||
if (monitor->xdg_output_done)
|
||||
{
|
||||
logical_geometry = monitor->xdg_output_geometry;
|
||||
needs_scaling =
|
||||
|
Loading…
Reference in New Issue
Block a user