From 802c1df13112d9cf90f99ec2eeb7546d27e478e2 Mon Sep 17 00:00:00 2001 From: kallaballa Date: Sun, 25 Dec 2022 05:54:33 +0100 Subject: [PATCH] fixed gap finding for minimized windows --- src/common/viz2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/viz2d.cpp b/src/common/viz2d.cpp index 7e9ce6bd0..bbac5e661 100644 --- a/src/common/viz2d.cpp +++ b/src/common/viz2d.cpp @@ -108,7 +108,7 @@ Viz2DWindow::Viz2DWindow(nanogui::Screen *screen, int x, int y, const string &ti this->set_position({lastX, screen_->height() - this->height()}); break; } - lastX = x + win->width(); + lastX = x + win->width() + 1; } } if(gap < w) {