From a623a611f19c45bf3f6e1c008e410cd2e452d46c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 24 Aug 2019 20:51:12 +0200 Subject: [PATCH] (Wayland) Untested - apply the same for Wayland --- gfx/drivers_context/wayland_ctx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 1a5be4f114..e879447dd3 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -1148,9 +1148,14 @@ static void gfx_ctx_wl_check_window(void *data, bool *quit, if (new_width != *width * wl->last_buffer_scale || new_height != *height * wl->last_buffer_scale) { - *resize = true; *width = new_width; *height = new_height; + *resize = true; + +#ifdef HAVE_MENU + rarch_ctl(RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET, NULL); +#endif + wl->last_buffer_scale = wl->buffer_scale; }