diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-09 17:06:35 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-09 17:06:35 +0100 |
| commit | eb2572deaf06548671059de59351eaff13e92a6e (patch) | |
| tree | 2e4cd4cf1f4659e68170fa8f21c9dd2aad059b53 /src | |
| parent | 632661fa647e5ce932bd87c8ea6f8035a8bdd264 (diff) | |
Add new Wayland-specific fl_wl_compositor() function
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 5291f80b0..560756870 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1573,6 +1573,12 @@ struct wld_window *fl_wl_xid(const Fl_Window *win) { } +struct wl_compositor *fl_wl_compositor() { + Fl_Wayland_Screen_Driver *screen_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver(); + return screen_driver->wl_compositor; +} + + Fl_Wayland_Plugin *Fl_Wayland_Window_Driver::gl_plugin() { static Fl_Wayland_Plugin *plugin = NULL; if (!plugin) { |
