From aa428e4a8236af6aaa8fdd394d253d645f1b7624 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 24 Aug 2019 20:49:47 +0200 Subject: [PATCH] (X11) Better resizing of menu when window is resized --- gfx/common/x11_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gfx/common/x11_common.c b/gfx/common/x11_common.c index f0e7d28249..b6b77b78b3 100644 --- a/gfx/common/x11_common.c +++ b/gfx/common/x11_common.c @@ -606,9 +606,12 @@ void x11_check_window(void *data, bool *quit, if (new_width != *width || new_height != *height) { - *resize = true; *width = new_width; *height = new_height; + *resize = true; +#ifdef HAVE_MENU + rarch_ctl(RARCH_CTL_SET_DEFERRED_MENU_CONTEXT_RESET, NULL); +#endif } x11_alive(data);