diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-13 15:31:12 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-03-13 15:31:12 +0100 |
| commit | 8aafe6cf69f2da1d479b41bafdf23f9c482badd2 (patch) | |
| tree | 1f311c91dd35b8a8b8554c1d5a11e6831b81a61b /src/drivers | |
| parent | 9980dc6fa127cb5a2bfd806eae01f95f788a88a7 (diff) | |
Fix Fl_Wayland_Window_Driver::set_cursor_4args()
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 4 |
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; |
