Skip to content

Commit

Permalink
audqt: Avoid overly large infopopup. Closes: #1435
Browse files Browse the repository at this point in the history
With Qt 6 on Linux the popup is way too large when it is shown/moved
on a secondary monitor, even if it uses the same resolution as the
primary one. Qt 5 is not affected for some reason. Calling adjustSize()
fixes this for Qt 6 and does no harm on Qt 5.
  • Loading branch information
radioactiveman committed Oct 8, 2024
1 parent dff5092 commit 19e6b64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libaudqt/util-qt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ void PopupWidget::showEvent(QShowEvent *)
y += 3;

move(x, y);
adjustSize();
}

void show_copy_context_menu(QWidget * parent, const QPoint & global_pos,
Expand Down

0 comments on commit 19e6b64

Please sign in to comment.