Hybrid Wayland/X11 : more accurate writing of fl_wl_display().

This commit is contained in:
ManoloFLTK 2022-08-29 18:49:15 +02:00
parent 9276ade07b
commit 1ca767eb13

View File

@ -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;
}