mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Move _monitorRect and _monitorLastGot to psDesktopRect method
This commit is contained in:
@@ -145,14 +145,9 @@ void psDoCleanup() {
|
||||
}
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
QRect _monitorRect;
|
||||
crl::time _monitorLastGot = 0;
|
||||
|
||||
} // namespace
|
||||
|
||||
QRect psDesktopRect() {
|
||||
static QRect _monitorRect;
|
||||
static crl::time _monitorLastGot = 0;
|
||||
auto tnow = crl::now();
|
||||
if (tnow > _monitorLastGot + 1000LL || tnow < _monitorLastGot) {
|
||||
_monitorLastGot = tnow;
|
||||
|
Reference in New Issue
Block a user