mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Move _monitorRect and _monitorLastGot to psDesktopRect method
This commit is contained in:
@@ -947,14 +947,9 @@ Window::ControlsLayout WindowControlsLayout() {
|
||||
|
||||
} // namespace Platform
|
||||
|
||||
namespace {
|
||||
|
||||
QRect _monitorRect;
|
||||
auto _monitorLastGot = 0LL;
|
||||
|
||||
} // namespace
|
||||
|
||||
QRect psDesktopRect() {
|
||||
static QRect _monitorRect;
|
||||
static auto _monitorLastGot = 0LL;
|
||||
auto tnow = crl::now();
|
||||
if (tnow > _monitorLastGot + 1000LL || tnow < _monitorLastGot) {
|
||||
_monitorLastGot = tnow;
|
||||
|
Reference in New Issue
Block a user