diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-08 04:58:17 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-09 01:32:12 -0400 |
| commit | 12e1a91e4fe8de291fbe72c23031f3e79613c0dd (patch) | |
| tree | 0693fc671973813e4df8a5cbcd21a048f9bf4355 /src/envmetrics.cpp | |
| parent | e08e605c85a1f62f4b6b83f5404457f5dc55654a (diff) | |
log desktop geometry
log more info on game plugin
Diffstat (limited to 'src/envmetrics.cpp')
| -rw-r--r-- | src/envmetrics.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/envmetrics.cpp b/src/envmetrics.cpp index b1b9bd2e..5fb80449 100644 --- a/src/envmetrics.cpp +++ b/src/envmetrics.cpp @@ -4,6 +4,7 @@ #include <shellscalingapi.h> #include <log.h> #include <utility.h> +#include <QDesktopWidget> namespace env { @@ -225,6 +226,17 @@ const std::vector<Display>& Metrics::displays() const return m_displays; } +QRect Metrics::desktopGeometry() const +{ + QRect r; + + for (auto* s : QGuiApplication::screens()) { + r = r.united(s->geometry()); + } + + return r; +} + void Metrics::getDisplays() { // don't bother if it goes over 100 |
