mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
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:
parent
5ae17de23f
commit
3a200aa279
@ -835,7 +835,7 @@ int main(int argc, char *argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct tinywl_server server;
|
||||
struct tinywl_server server = {0};
|
||||
/* The Wayland display is managed by libwayland. It handles accepting
|
||||
* clients from the Unix socket, manging Wayland globals, and so on. */
|
||||
server.wl_display = wl_display_create();
|
||||
|
Loading…
Reference in New Issue
Block a user