File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ PinWidget::PinWidget(const QPixmap& pixmap,
5858 new QShortcut (Qt::Key_Escape, this , SLOT (close ()));
5959
6060 qreal devicePixelRatio = 1 ;
61- #if defined(Q_OS_MACOS)
61+ #if defined(Q_OS_MACOS) || defined(Q_OS_LINUX)
6262 QScreen* currentScreen = QGuiAppCurrentScreen ().currentScreen ();
6363 if (currentScreen != nullptr ) {
6464 devicePixelRatio = currentScreen->devicePixelRatio ();
@@ -72,7 +72,7 @@ PinWidget::PinWidget(const QPixmap& pixmap,
7272 setWindowFlags (Qt::X11BypassWindowManagerHint);
7373#endif
7474
75- #if defined(Q_OS_MACOS)
75+ #if defined(Q_OS_MACOS) || defined(Q_OS_LINUX)
7676 if (currentScreen != nullptr ) {
7777 QPoint topLeft = currentScreen->geometry ().topLeft ();
7878 adjusted_pos.setX ((adjusted_pos.x () - topLeft.x ()) / devicePixelRatio +
You can’t perform that action at this time.
0 commit comments