tinywl: init server to zeros

This fixes e.g. accessing grabbed_view on a toplevel unmap if no
toplevel was grabbed before.
This commit is contained in:
Kirill Primak 2023-03-04 17:01:00 +03:00
parent 5ae17de23f
commit 3a200aa279

View file

@ -835,7 +835,7 @@ int main(int argc, char *argv[]) {
return 0; return 0;
} }
struct tinywl_server server; struct tinywl_server server = {0};
/* The Wayland display is managed by libwayland. It handles accepting /* The Wayland display is managed by libwayland. It handles accepting
* clients from the Unix socket, manging Wayland globals, and so on. */ * clients from the Unix socket, manging Wayland globals, and so on. */
server.wl_display = wl_display_create(); server.wl_display = wl_display_create();