mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue