wayland: Don't crash on cursor size 0
authorMatthias Clasen <mclasen@redhat.com>
Sun, 26 Mar 2023 00:25:51 +0000 (20:25 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 26 Mar 2023 02:01:20 +0000 (22:01 -0400)
commitc80d712d35dc7c3e4042a95600d353f8d217c5b8
treed410cb03d7635c1cdc7f9137cb055e0c4e5241b9
parent3c5b8be62e40661811a3e8435042481f64af5829
wayland: Don't crash on cursor size 0

The cursor-theme-size setting is documented as
'0 means the default size'. Make it so by using
size 24 if we see a 0. Its better than crashing.

Fixes: #5700
gdk/wayland/gdkdisplay-wayland.c