[Bf-blender-cvs] [2a17fd40a56] blender-v3.4-release: Fix non-interactive window borders after changes to event handling
Campbell Barton
noreply at git.blender.org
Sat Nov 12 06:39:32 CET 2022
Commit: 2a17fd40a56349ee576745e4b544e1e81ba7568a
Author: Campbell Barton
Date: Sat Nov 12 16:26:50 2022 +1100
Branches: blender-v3.4-release
https://developer.blender.org/rB2a17fd40a56349ee576745e4b544e1e81ba7568a
Fix non-interactive window borders after changes to event handling
Regression in [0] causes LIBDECOR interactions not to be detected.
[0]: deb8ae6bd1edb0983d9ac972b2c95090f4c5e642
===================================================================
M intern/ghost/intern/GHOST_SystemWayland.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp
index 057c049792d..ed0dc9b5949 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cpp
+++ b/intern/ghost/intern/GHOST_SystemWayland.cpp
@@ -1522,6 +1522,10 @@ static int ghost_wl_display_event_pump(struct wl_display *wl_display)
{
/* Based on SDL's `Wayland_PumpEvents`. */
int err;
+
+ /* NOTE: Without this, interactions with window borders via LIBDECOR doesn't function. */
+ wl_display_flush(wl_display);
+
if (wl_display_prepare_read(wl_display) == 0) {
/* Use #GWL_IOR_NO_RETRY to ensure #SIGINT will break us out of our wait. */
if (file_descriptor_is_io_ready(
More information about the Bf-blender-cvs
mailing list