summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-01-19 09:32:57 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-01-19 09:32:57 +0100
commit13d412f82f12d42e3add52c9ba0dd62c7cf68ed2 (patch)
treee9b90b5816b68e4c6e248c4c3fd9cf4e77d8e06a /src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
parent01f2f760b67a6b498ea7251c1bd2e26aaf7db034 (diff)
Wayland: add necessary initializations after commit b7fba46
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 138ef53d5..9b04779cb 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -80,6 +80,7 @@ void Fl_Wayland_Window_Driver::delete_cursor_(struct wld_window *xid, bool delet
(struct Fl_Wayland_Graphics_Driver::wld_buffer *)
wl_buffer_get_user_data(new_image->buffer);
struct wld_window fake_xid;
+ memset(&fake_xid, 0, sizeof(fake_xid));
fake_xid.buffer = offscreen;
Fl_Wayland_Graphics_Driver::buffer_release(&fake_xid);
free(new_image);