rootston: fix artifacts when un-maximizing a view

This commit is contained in:
emersion 2018-01-20 01:04:35 +01:00
parent ddafcb86a2
commit bc001e90e9
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 31 additions and 25 deletions

View file

@ -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;