FLTK logo

[master] ef243d6 - Add needed variable for Wayland-only platform.

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] ef243d6 - Add needed variable for Wayland-only platform. "ManoloFLTK" Sep 11, 2022  
 
commit ef243d6c865ba366f5d870ad48617ddd9b2a56e9
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun Sep 11 09:52:02 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun Sep 11 09:52:02 2022 +0200

    Add needed variable for Wayland-only platform.

 src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 928c5bb..e35cfdd 100644
--- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -50,6 +50,10 @@ extern "C" {
 #define fl_max(a,b) ((a) > (b) ? (a) : (b))
 #define fl_min(a,b) ((a) < (b) ? (a) : (b))
 
+#if !FLTK_USE_X11
+Window fl_window = 0; // temporary, until we get rid of this global for wayland
+#endif
+
 
 struct wld_window *Fl_Wayland_Window_Driver::wld_window = NULL;
 
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'.