summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-02-15 22:52:20 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-02-15 22:52:20 +0100
commitf6b87790ccf201cafbb5b6b0347cc365dfe4d265 (patch)
tree51fbb825a869034328f4c0dc1c441e5631491449 /src/drivers/Wayland/Fl_Wayland_Window_Driver.H
parent6fbfaba19d0a2d2dc7080e450d5055ff19ac89e1 (diff)
Wayland: new struct wl_cursor *custom_cursor member variable
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.H')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.H7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
index 2ed5ed8e2..ea93af856 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H
@@ -59,13 +59,11 @@ private:
cairo_rectangle_int_t *subRect_; // makes sure subwindow remains inside its parent window
static bool in_flush; // useful for progressive window drawing
static Fl_Wayland_Plugin *gl_plugin();
- struct wl_cursor *cursor_; // non-null when using custom cursor
Fl_Cursor standard_cursor_; // window's standard custom kind
- void delete_cursor_();
+ void delete_cursor_(struct wld_window *);
struct gl_start_support *gl_start_support_; // for support of gl_start/gl_finish
public:
inline Fl_Cursor standard_cursor() { return standard_cursor_; };
- struct wl_cursor *cursor() { return cursor_; };
bool in_handle_configure; // distinguish OS and user window resize
struct window_output {
Fl_Wayland_Screen_Driver::output* output;
@@ -137,6 +135,7 @@ public:
struct wld_window {
+ Fl_Window *fl_win;
struct wl_list outputs;
struct wl_surface *wl_surface;
struct fl_wld_buffer *buffer;
@@ -147,7 +146,7 @@ struct wld_window {
struct xdg_popup *xdg_popup;
struct xdg_toplevel *xdg_toplevel;
};
- Fl_Window *fl_win;
+ struct wl_cursor *custom_cursor; // non-null when using custom cursor
enum Fl_Wayland_Window_Driver::kind kind;
int configured_width;
int configured_height;