mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
core: don't restore on terminate
This commit is contained in:
parent
7d5cb1dbb3
commit
cdb8e7774f
1 changed files with 3 additions and 0 deletions
|
@ -886,6 +886,9 @@ zwlr_screencopy_manager_v1* CHyprlock::getScreencopy() {
|
|||
}
|
||||
|
||||
void CHyprlock::attemptRestoreOnDeath() {
|
||||
if (m_bTerminate)
|
||||
return;
|
||||
|
||||
// dirty hack
|
||||
uint64_t timeNowMs = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - std::chrono::system_clock::from_time_t({0})).count();
|
||||
|
||||
|
|
Loading…
Reference in a new issue