Remove offset logic from BaseWindow::moveTo (#4798)

It's now up to each window to offset its coordinates themselves (which is good 👍 )
This commit is contained in:
nerix
2023-08-28 18:38:41 +02:00
committed by GitHub
parent 7cb04bf58b
commit af4233850d
6 changed files with 7 additions and 13 deletions
+1 -7
View File
@@ -503,14 +503,8 @@ void BaseWindow::leaveEvent(QEvent *)
TooltipWidget::instance()->hide();
}
void BaseWindow::moveTo(QPoint point, bool offset, BoundsChecker boundsChecker)
void BaseWindow::moveTo(QPoint point, BoundsChecker boundsChecker)
{
if (offset)
{
point.rx() += 16;
point.ry() += 16;
}
switch (boundsChecker)
{
case BoundsChecker::Off: {