Wayland: replace global fl_display by function struct wl_display *fl_wl_display().

This commit is contained in:
ManoloFLTK
2022-03-23 11:37:15 +01:00
parent 4c854dbbc3
commit 2d71a95b5d
7 changed files with 48 additions and 66 deletions
+3 -4
View File
@@ -20,8 +20,6 @@
typedef struct wld_window *Window;
extern struct wl_display *fl_display;
struct flWaylandRegion {
int count;
struct _cairo_rectangle *rects;
@@ -30,5 +28,6 @@ struct flWaylandRegion {
#include <stdint.h>
extern FL_EXPORT uint32_t fl_event_time;
extern FL_EXPORT struct wl_surface *fl_wl_surface(Window xid);
extern FL_EXPORT struct _cairo *fl_wl_cairo();
FL_EXPORT struct wl_display *fl_wl_display();
FL_EXPORT struct wl_surface *fl_wl_surface(Window xid);
FL_EXPORT struct _cairo *fl_wl_cairo();