mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-04 16:25:39 -05:00
Remove Linux workaround
This commit is contained in:
parent
e9d366f2b9
commit
d1e752cda1
|
|
@ -5,9 +5,6 @@
|
|||
#include <QFileDialog>
|
||||
#include <QGuiApplication>
|
||||
#include <QStandardPaths>
|
||||
#if __linux__
|
||||
#include <QDesktopWidget>
|
||||
#endif
|
||||
|
||||
QMetaObject::Connection inactivePluse;
|
||||
|
||||
|
|
@ -441,16 +438,7 @@ void AdvSceneSwitcher::setTabOrder()
|
|||
|
||||
bool windowPosValid(QPoint pos)
|
||||
{
|
||||
#if __linux__
|
||||
// QDesktopWidget::availableGeometry() is deprecated.
|
||||
// Switch to QGuiApplication::screenAt() when it is available on most Linux platforms.
|
||||
QDesktopWidget *desktop = QApplication::desktop();
|
||||
auto screen = desktop->availableGeometry(pos);
|
||||
return (pos.x() > screen.x()) && (pos.y() > screen.y()) &&
|
||||
(pos.x() < screen.width() && (pos.y() < screen.height()));
|
||||
#else
|
||||
return !!QGuiApplication::screenAt(pos);
|
||||
#endif
|
||||
}
|
||||
|
||||
void AdvSceneSwitcher::restoreWindowGeo()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user