mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-25 03:19:49 +01: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…
Reference in a new issue