mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-30 05:45:58 +01:00
debug: allow manual crash from hyprctl
This commit is contained in:
parent
903d298381
commit
eea99abc49
1 changed files with 10 additions and 0 deletions
|
@ -1161,6 +1161,16 @@ std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::
|
||||||
// Update window border colors
|
// Update window border colors
|
||||||
g_pCompositor->updateAllWindowsAnimatedDecorationValues();
|
g_pCompositor->updateAllWindowsAnimatedDecorationValues();
|
||||||
|
|
||||||
|
// manual crash
|
||||||
|
if (configValues["debug:manual_crash"].intValue && !m_bManualCrashInitiated) {
|
||||||
|
m_bManualCrashInitiated = true;
|
||||||
|
g_pHyprNotificationOverlay->addNotification("Manual crash has been set up. Set debug:manual_crash back to 0 in order to crash the compositor.", CColor(0), 5000,
|
||||||
|
ICON_INFO);
|
||||||
|
} else if (m_bManualCrashInitiated && !configValues["debug:manual_crash"].intValue) {
|
||||||
|
// cowabunga it is
|
||||||
|
g_pHyprRenderer->initiateManualCrash();
|
||||||
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue