From d8c36e5bb8d1735721e18d1b27ef198e7c6fd372 Mon Sep 17 00:00:00 2001 From: alphanu1 <37101891+alphanu1@users.noreply.github.com> Date: Mon, 10 Sep 2018 17:42:33 +0100 Subject: [PATCH] xrandr spamming fix --- gfx/display_servers/dispserv_x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/display_servers/dispserv_x11.c b/gfx/display_servers/dispserv_x11.c index b2c99cb224..4560407ba5 100644 --- a/gfx/display_servers/dispserv_x11.c +++ b/gfx/display_servers/dispserv_x11.c @@ -70,9 +70,10 @@ static void x11_display_server_destroy(void *data) system(output); } - } + sprintf(output,"xrandr --rmmode %s", old_mode); system(output); + } if (dispserv) free(dispserv);