FLTK logo

[master] 1ca767e - Hybrid Wayland/X11 : more accurate writing of fl_wl_display().

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 1ca767e - Hybrid Wayland/X11 : more accurate writing of fl_wl_display(). "ManoloFLTK" Aug 29, 2022  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.