aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-04-04 20:48:17 +0200
committerdec05eba <dec05eba@protonmail.com>2025-04-04 20:48:17 +0200
commit152d3d753692f8aa544aff10cee1ab91e180ead6 (patch)
treeee62c2ce4e4cffbdfdc254511ab9c52ca20409aa
parentff01f69006cafd4add53a8c3d4d3dfc45e98a4c1 (diff)
m
-rw-r--r--src/window/wayland.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/window/wayland.c b/src/window/wayland.c
index 63758cd..7e319fb 100644
--- a/src/window/wayland.c
+++ b/src/window/wayland.c
@@ -179,8 +179,7 @@ static void xdg_output_handle_name(void *data, struct zxdg_output_v1 *xdg_output
(void)name;
}
-static void xdg_output_handle_description(void *data, struct zxdg_output_v1 *xdg_output, const char *description)
-{
+static void xdg_output_handle_description(void *data, struct zxdg_output_v1 *xdg_output, const char *description) {
(void)data;
(void)xdg_output;
(void)description;
@@ -231,7 +230,7 @@ static void gsr_window_wayland_deinit(gsr_window_wayland *self) {
self->outputs[i].name = NULL;
}
- if(self->outputs[i].output) {
+ if(self->outputs[i].xdg_output) {
zxdg_output_v1_destroy(self->outputs[i].xdg_output);
self->outputs[i].output = NULL;
}