<div dir="ltr">On Sun, Apr 22, 2018 at 2:18 PM, Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>> wrote:<br>><br>><br>> Do you mind using your real name?<br><br><br>Sure, here is the patch again with my real name.<br><br>From: Preston Carpenter <<a href="mailto:APragmaticPlace@gmail.com">APragmaticPlace@gmail.com</a>><br><br>On Wayland compositors such as Sway and Way Cooler Xwayland windows will<br>be scaled twice if a TTY change occurs. This is due to sending the<br>output mode information twice, causing it to be applied twice to RandR.<br><br>This patch does not notify RandR if the size did not change, covering<br>the case where a TTY was suspended and then later resumed.<br><br>Signed-off-by: Preston Carpenter <<a href="mailto:APragmaticPlace@gmail.com">APragmaticPlace@gmail.com</a>><br>---<br> hw/xwayland/xwayland-output.c | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c<br>index 48faeb142..dc988ed2f 100644<br>--- a/hw/xwayland/xwayland-output.c<br>+++ b/hw/xwayland/xwayland-output.c<br>@@ -194,7 +194,7 @@ update_screen_size(struct xwl_output *xwl_output, int width, int height)<br> <br>     SetRootClip(xwl_screen->screen, xwl_screen->root_clip_mode);<br> <br>-    if (xwl_screen->screen->root) {<br>+    if (xwl_screen->screen->root && xwl_output->width != width && xwl_output->height != height) {<br>         BoxRec box = { 0, 0, width, height };<br> <br>         xwl_screen->screen->root->drawable.width = width;<br>--<br>2.17.0<br><br> </div>