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 00:25:51 +0000 (20:25 -0400)
commit7adbbe6f35347b19319d9e4ce8c92fb0e861524b
tree397a6a8f3c8891c544ea83048ec69b01c82a8773
parent3f93a51146a88577e18f2582e85309693d4c6e8d
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