mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-11 09:24:50 +01:00
Merge pull request #4939 from TheUbuntuGuy/osd
Fix Pretty OSD positioning on Windows
This commit is contained in:
commit
bacbd544a4
@ -317,8 +317,14 @@ void OSDPretty::Reposition() {
|
||||
int y = popup_pos_.y() < 0 ? geometry.bottom() - height()
|
||||
: geometry.top() + popup_pos_.y();
|
||||
|
||||
move(qBound(0, x, geometry.right() - width()),
|
||||
qBound(0, y, geometry.bottom() - height()));
|
||||
#ifndef Q_OS_WIN32
|
||||
// windows needs negative coordinates for monitors
|
||||
// to the left or above the primary
|
||||
x = qBound(0, x, geometry.right() - width());
|
||||
y = qBound(0, y, geometry.bottom() - height());
|
||||
#endif
|
||||
|
||||
move(x, y);
|
||||
|
||||
// Create a mask for the actual area of the OSD
|
||||
QBitmap mask(size());
|
||||
|
Loading…
Reference in New Issue
Block a user