summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-02-09 10:04:13 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-02-09 10:04:13 +0100
commitfc6d36405718e19946ba0b4c96dcbbb39b456eee (patch)
tree8dbc17c7e3002b4d6057b7c2c5af93fbbb6c1552 /src/drivers/Wayland/Fl_Wayland_Window_Driver.H
parentc83164fbcc7330ae7e2a8b6d1e5b4d32023109c7 (diff)
Change parameters of Fl_Wayland_Window_Driver::delete_cursor()
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.H')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.H14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
index e0eca821e..192d82f5a 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
@@ -59,7 +59,6 @@ private:
cairo_rectangle_int_t *subRect_; // makes sure subwindow remains inside its parent window
static bool in_flush_; // useful for progressive window drawing
Fl_Cursor standard_cursor_; // window's standard custom kind
- void delete_cursor_(bool delete_rgb = true);
struct gl_start_support *gl_start_support_; // for support of gl_start/gl_finish
bool is_popup_window_;
public:
@@ -74,6 +73,12 @@ public:
struct Fl_Wayland_Screen_Driver::output *output;
struct wl_list link;
};
+ struct custom_cursor {
+ struct wl_cursor *wl_cursor;
+ const Fl_RGB_Image *rgb;
+ int hotx, hoty;
+ };
+ static void delete_cursor(struct custom_cursor *custom, bool delete_rgb = true);
static type_for_resize_window_between_screens data_for_resize_window_between_screens_;
void decorated_win_size(int &w, int &h);
void shape_bitmap_(Fl_Image* b);
@@ -155,11 +160,8 @@ struct wld_window {
struct xdg_popup *xdg_popup;
struct xdg_toplevel *xdg_toplevel;
};
- struct custom_cursor_ {
- struct wl_cursor *wl_cursor;
- const Fl_RGB_Image *rgb;
- int hotx, hoty;
- } *custom_cursor; // non-null when using custom cursor
+ // non-null when using custom cursor
+ struct Fl_Wayland_Window_Driver::custom_cursor *custom_cursor;
int configured_width;
int configured_height;
int floating_width;