diff options
author | Campbell Barton <campbell@blender.org> | 2022-11-10 10:03:32 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-11-12 07:11:43 +0300 |
commit | deb8ae6bd1edb0983d9ac972b2c95090f4c5e642 (patch) | |
tree | 702b1b072c067a580958a4f33b6ad559b02f3ab9 /intern/ghost/CMakeLists.txt | |
parent | c5b36aa9404be6859fee7c3d212e484ea9b1d1dc (diff) |
GHOST/Wayland: replace roundtrip with dispatch_pending
Add a non-blocking version wrapper for wl_display_dispatch_pending.
This uses roughly the same logic as Wayland_PumpEvents in SDL.
Noticed this when investigating T100855.
Note that performing a round-trip doesn't seem necessary from looking
into QT/GTK & SDL event handling loops.
Diffstat (limited to 'intern/ghost/CMakeLists.txt')
-rw-r--r-- | intern/ghost/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt index ea21d831b0c..5c559072625 100644 --- a/intern/ghost/CMakeLists.txt +++ b/intern/ghost/CMakeLists.txt @@ -310,6 +310,11 @@ elseif(WITH_GHOST_X11 OR WITH_GHOST_WAYLAND) add_definitions(-DHAVE_MEMFD_CREATE) endif() + check_symbol_exists(poll "poll.h" HAVE_POLL) + if(HAVE_POLL) + add_definitions(-DHAVE_POLL) + endif() + list(APPEND SRC intern/GHOST_SystemWayland.cpp intern/GHOST_WindowWayland.cpp |