diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-04-18 19:32:47 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-04-18 19:32:47 +0200 |
| commit | e6957fc2f52d75d4de0e91df0729156d9ccfb5b0 (patch) | |
| tree | f7f7174dfd5a571f95314116437cec2cbd61d1a0 /src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | |
| parent | 3fc8875756c3ce02b1b45bd0383a0c307c442dde (diff) | |
Allow libdecor package version ≥ 0.2.0 with FLTK_USE_SYSTEM_LIBDECOR
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index efbb176ab..60011393d 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -47,7 +47,7 @@ #include <string.h> // for strerror() extern "C" { bool libdecor_get_cursor_settings(char **theme, int *size); - bool fl_is_surface_gtk_titlebar(struct wl_surface *, struct libdecor *); + bool fl_is_surface_gtk_titlebar(struct wl_surface *, struct libdecor *, struct wl_display *); } // set this to 1 for keyboard debug output, 0 for no debug output @@ -206,7 +206,8 @@ static void pointer_enter(void *data, struct wl_pointer *wl_pointer, uint32_t se Fl_Window *win = event_coords_from_surface(surface, surface_x, surface_y); if (!win && gtk_shell) { // check that surface is the headerbar of a GTK-decorated window Fl_Wayland_Screen_Driver *scr_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver(); - if (fl_is_surface_gtk_titlebar(surface, scr_driver->libdecor_context)) { + if (fl_is_surface_gtk_titlebar(surface, scr_driver->libdecor_context, + Fl_Wayland_Screen_Driver::wl_display)) { gtk_shell_surface = surface; } } |
