diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-04 22:13:31 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-04 22:13:36 +0100 |
| commit | eea99abc49c964ed42f059d43c06db41a90809c1 (patch) | |
| tree | 270df40e68dfab937d2ea8c5b4457a9fa1cadb7f /src/config/ConfigManager.cpp | |
| parent | 903d2983819b118be193caee97d240c2c442f13f (diff) | |
debug: allow manual crash from hyprctl
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 7c626002..7eb4a361 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1161,6 +1161,16 @@ std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std:: // Update window border colors 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; } |
