summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Shlyak <shlyak-pavel2011@ya.ru>2018-12-23 00:45:10 +0300
committerGitHub <noreply@github.com>2018-12-23 00:45:10 +0300
commit6cbed6d3ac5db5601c82d04622eb1ed9f3061923 (patch)
tree1a35472638adaccf12f53f8012a12afcacf22e88
parent982a44588742d64d480321abd118192a37f63eae (diff)
Remove useless assignments
It is a naive way of fixing it :) Needs attentive review
-rw-r--r--src/winwidget.c2
1 files changed, 0 insertions, 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);