From 6cbed6d3ac5db5601c82d04622eb1ed9f3061923 Mon Sep 17 00:00:00 2001
From: Pavel Shlyak <shlyak-pavel2011@ya.ru>
Date: Sun, 23 Dec 2018 00:45:10 +0300
Subject: [PATCH] Remove useless assignments

It is a naive way of fixing it :) Needs attentive review
---
 src/winwidget.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/winwidget.c b/src/winwidget.c
index b68d56f..4f5f4a6 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -740,8 +740,6 @@ void winwidget_show(winwidget winwid)
 void winwidget_move(winwidget winwid, int x, int y)
 {
 	if (winwid && ((winwid->x != x) || (winwid->y != y))) {
-		winwid->x = x;
-		winwid->y = y;
 		winwid->x = (x > scr->width) ? scr->width : x;
 		winwid->y = (y > scr->height) ? scr->height : y;
 		XMoveWindow(disp, winwid->win, winwid->x, winwid->y);
-- 
GitLab