diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-29 18:49:15 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-29 18:49:15 +0200 |
| commit | 1ca767eb13f2027a1a2c21f68346ff1d7339ff86 (patch) | |
| tree | 73f78150a63d425e2948f71b62cdfaa6b08430e5 /src/drivers | |
| parent | 9276ade07b5e1ea1bb2c236d516901b4d2e3be9c (diff) | |
Hybrid Wayland/X11 : more accurate writing of fl_wl_display().
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index cd512350b..cdfc88e80 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1465,6 +1465,7 @@ void Fl_Wayland_Screen_Driver::reset_spot() { } -struct wl_display *fl_wl_display() { +struct wl_display *fl_wl_display() { + if (!Fl_Wayland_Screen_Driver::wl_display || !Fl_Wayland_Screen_Driver::wl_registry) return NULL; return Fl_Wayland_Screen_Driver::wl_display; } |
