summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-29 18:49:15 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-29 18:49:15 +0200
commit1ca767eb13f2027a1a2c21f68346ff1d7339ff86 (patch)
tree73f78150a63d425e2948f71b62cdfaa6b08430e5
parent9276ade07b5e1ea1bb2c236d516901b4d2e3be9c (diff)
Hybrid Wayland/X11 : more accurate writing of fl_wl_display().
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx3
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;
}