mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-24 19:00:02 +01:00
core: allow fade out for other compositors
Works fine in sway altough it fades to a black screen not to the desktop. Still looks kinda good.
This commit is contained in:
parent
90c313488d
commit
adfeb543ad
1 changed files with 2 additions and 4 deletions
|
|
@ -531,11 +531,9 @@ void CHyprlock::run() {
|
|||
}
|
||||
|
||||
void CHyprlock::unlock() {
|
||||
static auto* const PNOFADEOUT = (Hyprlang::INT* const*)g_pConfigManager->getValuePtr("general:no_fade_out");
|
||||
const auto CURRENTDESKTOP = getenv("XDG_CURRENT_DESKTOP");
|
||||
const auto SZCURRENTD = std::string{CURRENTDESKTOP ? CURRENTDESKTOP : ""};
|
||||
static auto* const PNOFADEOUT = (Hyprlang::INT* const*)g_pConfigManager->getValuePtr("general:no_fade_out");
|
||||
|
||||
if (**PNOFADEOUT || SZCURRENTD != "Hyprland") {
|
||||
if (**PNOFADEOUT) {
|
||||
unlockSession();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue