1
1

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.
This commit is contained in:
2022-06-12 17:44:15 +10:00
parent 07a5869cf6
commit 7a849678c9

View File

@@ -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;
}