surface/wayland: Handle no current monitor when calculating bounds
authorJonas Ådahl <jadahl@gmail.com>
Fri, 30 Sep 2022 07:30:30 +0000 (09:30 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 6 Oct 2022 08:42:27 +0000 (10:42 +0200)
commit79eab08797e1121f0fe7d84f570d28055d3f12b0
tree1dab612e73b008cfc201f997ef453d5319d72c89
parent2ca2a156376344105a0a6a55bf7d54682017367b
surface/wayland: Handle no current monitor when calculating bounds

We shouldn't assume there is always a monitor to derive bounds from.
If there is no monitor, pass empty bounds, as this matches what
xdg_toplevel.configure_bounds do in this case.

(cherry picked from commit 148c1336745a043a9660da6c4734ed905c628130)
gdk/wayland/gdksurface-wayland.c