Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-06-12 10:44:15 +0300
committerCampbell Barton <campbell@blender.org>2022-06-12 10:48:56 +0300
commit7a849678c93ec907fc98b0d30c0c9fd0664ca04c (patch)
tree22179ab9e7194438c8a458a95b530fa1e3f402cb /intern
parent07a5869cf6f7d07c67acfd9305078682e8ffee67 (diff)
Fix GHOST/Wayland setting the window size
Zoom in the animation player wasn't working: - The internal window size value wasn't being updated. - The window size event wasn't being sent.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowWayland.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp
index 051c826055d..685fcedd649 100644
--- a/intern/ghost/intern/GHOST_WindowWayland.cpp
+++ b/intern/ghost/intern/GHOST_WindowWayland.cpp
@@ -437,6 +437,16 @@ GHOST_TSuccess GHOST_WindowWayland::setClientHeight(uint32_t height)
GHOST_TSuccess GHOST_WindowWayland::setClientSize(uint32_t width, uint32_t height)
{
wl_egl_window_resize(w->egl_window, int(width), int(height), 0, 0);
+
+ /* Override any pending size that may be set. */
+ w->size_pending[0] = 0;
+ w->size_pending[1] = 0;
+
+ w->size[0] = width;
+ w->size[1] = height;
+
+ notify_size();
+
return GHOST_kSuccess;
}