diff --git a/src/conio/x_events.c b/src/conio/x_events.c
index cd576a654a572017acdf6cc53bfad859a1e08e7d..ad13b106ff9136d96fca6fd1dd718649dca4255f 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);