From 1dc4c22aefa12372eb8c49074432b6c7775960d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Wed, 19 May 2021 21:08:07 -0400
Subject: [PATCH] No need to resize window just because it moved.

Fixes X11 window dragging blinkiness.
---
 src/conio/x_events.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/conio/x_events.c b/src/conio/x_events.c
index cd576a654a..ad13b106ff 100644
--- a/src/conio/x_events.c
+++ b/src/conio/x_events.c
@@ -711,10 +711,11 @@ static int x11_event(XEvent *ev)
 		case ConfigureNotify: {
 			int width, height;
 
-			if (x11_window_xpos != ev->xconfigure.x || x11_window_ypos != ev->xconfigure.y
-			    || x11_window_width != ev->xconfigure.width || x11_window_height != ev->xconfigure.height) {
+			if (x11_window_xpos != ev->xconfigure.x || x11_window_ypos != ev->xconfigure.y) {
 				x11_window_xpos=ev->xconfigure.x;
 				x11_window_ypos=ev->xconfigure.y;
+			}
+			if (x11_window_width != ev->xconfigure.width || x11_window_height != ev->xconfigure.height) {
 				x11_window_width=ev->xconfigure.width;
 				x11_window_height=ev->xconfigure.height;
 				handle_resize_event(ev->xconfigure.width, ev->xconfigure.height);
-- 
GitLab