tinywl: init server to zeros

This fixes e.g. accessing grabbed_view on a toplevel unmap if no
toplevel was grabbed before.
Kirill Primak 2 years ago
parent 5ae17de23f
commit 3a200aa279

@ -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();

Loading…
Cancel
Save