Refactor linux backend event loops

Allow waiting for events on an arbitrary number of fds. Needed
for async DBUS integration.
This commit is contained in:
Kovid Goyal
2018-07-09 13:28:51 +05:30
parent 3a4b614ae0
commit e91eb27e56
10 changed files with 161 additions and 70 deletions

6
glfw/wl_platform.h vendored
View File

@@ -49,6 +49,7 @@ typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR
#else
#include "null_joystick.h"
#endif
#include "backend_utils.h"
#include "xkb_glfw.h"
#include "egl_context.h"
#include "osmesa_context.h"
@@ -230,10 +231,7 @@ typedef struct _GLFWlibraryWayland
PFN_wl_egl_window_resize window_resize;
} egl;
struct {
struct pollfd fds[2];
int wakeupFds[2];
} eventLoopData;
EventLoopData eventLoopData;
} _GLFWlibraryWayland;