From bc001e90e988c965776abbd078224c14ac296047 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 20 Jan 2018 01:04:35 +0100 Subject: rootston: fix artifacts when un-maximizing a view --- rootston/desktop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rootston/desktop.c') diff --git a/rootston/desktop.c b/rootston/desktop.c index faaefd05..e36ae6a4 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -298,6 +298,10 @@ void view_damage_whole(struct roots_view *view) { } void view_update_position(struct roots_view *view, double x, double y) { + if (view->x == x && view->y == y) { + return; + } + view_damage_whole(view); view->x = x; view->y = y; -- cgit v1.2.3