summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Wayland')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 6c1f301cf..fa6b8e4a4 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -1509,8 +1509,8 @@ int Fl_Wayland_Window_Driver::set_cursor_4args(const Fl_RGB_Image *rgb, int hotx
Fl_Surface_Device::pop_current();
delete img_surf;
memcpy(offscreen->data, offscreen->draw_buffer, offscreen->data_size);
- // delete the previous custom cursor, if there was one, but keep its Fl_RGB_Image
- delete_cursor_(xid, true);
+ // delete the previous custom cursor, if there was one, and keep its Fl_RGB_Image if appropriate
+ delete_cursor_(xid, !keep_copy);
//have this new cursor used
xid->custom_cursor = new struct wld_window::custom_cursor;
xid->custom_cursor->wl_cursor = new_cursor;