|
|
commit 1ca767eb13f2027a1a2c21f68346ff1d7339ff86
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Mon Aug 29 18:49:15 2022 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Mon Aug 29 18:49:15 2022 +0200
Hybrid Wayland/X11 : more accurate writing of fl_wl_display().
src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index cd51235..cdfc88e 100644
--- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ 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;
}
[ Direct Link to Message ] | |
|
| |