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:
Matthias Clasen 2024-01-31 14:11:43 +01:00 committed by Emilio Cobos Álvarez
parent 09373bf7ee
commit 51b04c5007
No known key found for this signature in database
GPG Key ID: E1152D0994E4BF8A

View File

@ -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 =