Skip to content

Commit

Permalink
core: only attemptRestoreOnDeath when locked
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Oct 31, 2024
1 parent 8773ea3 commit 1803834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hyprlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ zwlr_screencopy_manager_v1* CHyprlock::getScreencopy() {
}

void CHyprlock::attemptRestoreOnDeath() {
if (m_sCurrentDesktop != "Hyprland")
if (!m_bLocked || m_sCurrentDesktop != "Hyprland")
return;

const auto XDG_RUNTIME_DIR = getenv("XDG_RUNTIME_DIR");
Expand Down

0 comments on commit 1803834

Please sign in to comment.