diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-15 12:20:26 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-15 12:20:26 +0100 |
| commit | a4d0f7d269dc01e0a22c56aef13aa1f23405969a (patch) | |
| tree | a25443bf19e58c7d8a79eae5d03c669311c78df9 /src/drivers/Wayland/Fl_Wayland_Window_Driver.H | |
| parent | 9ff67f013edea7dc11eec9dba3d080d23194ed96 (diff) | |
Wayland: allow Fl_Window::cursor(Fl_Cursor) for whole window
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Window_Driver.H')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.H | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H index d1c724127..2ed5ed8e2 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.H +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.H @@ -59,10 +59,12 @@ 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_; + struct wl_cursor *cursor_; // non-null when using custom cursor + Fl_Cursor standard_cursor_; // window's standard custom kind void delete_cursor_(); 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 { |
