summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 0e8ce8c9..0c481149 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -741,8 +741,6 @@ CConfigManager::CConfigManager() {
registerConfigVar("group:groupbar:col.locked_active", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0x66ff5500"});
registerConfigVar("group:groupbar:col.locked_inactive", Hyprlang::CConfigCustomValueType{&configHandleGradientSet, configHandleGradientDestroy, "0x66775500"});
- registerConfigVar("render:explicit_sync", Hyprlang::INT{2});
- registerConfigVar("render:explicit_sync_kms", Hyprlang::INT{2});
registerConfigVar("render:direct_scanout", Hyprlang::INT{0});
registerConfigVar("render:expand_undersized_textures", Hyprlang::INT{1});
registerConfigVar("render:xp_mode", Hyprlang::INT{0});
@@ -1124,9 +1122,6 @@ Hyprlang::CParseResult CConfigManager::handleMonitorv2() {
}
void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) {
- static const auto PENABLEEXPLICIT = CConfigValue<Hyprlang::INT>("render:explicit_sync");
- static int prevEnabledExplicit = *PENABLEEXPLICIT;
-
updateWatcher();
for (auto const& w : g_pCompositor->m_windows) {
@@ -1162,8 +1157,6 @@ void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) {
"Warning: You're using an autogenerated config! Edit the config file to get rid of this message. (config file: " + getMainConfigPath() +
" )\nSUPER+Q -> kitty (if it doesn't launch, make sure it's installed or choose a different terminal in the config)\nSUPER+M -> exit Hyprland",
CHyprColor(1.0, 1.0, 70.0 / 255.0, 1.0));
- else if (*PENABLEEXPLICIT != prevEnabledExplicit)
- g_pHyprError->queueCreate("Warning: You changed the render:explicit_sync option, this requires you to restart Hyprland.", CHyprColor(0.9, 0.76, 0.221, 1.0));
else
g_pHyprError->destroy();
@@ -1267,10 +1260,7 @@ void CConfigManager::init() {
}
std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::string& VALUE) {
- static const auto PENABLEEXPLICIT = CConfigValue<Hyprlang::INT>("render:explicit_sync");
- static int prevEnabledExplicit = *PENABLEEXPLICIT;
-
- const auto RET = m_config->parseDynamic(COMMAND.c_str(), VALUE.c_str());
+ const auto RET = m_config->parseDynamic(COMMAND.c_str(), VALUE.c_str());
// invalidate layouts if they changed
if (COMMAND == "monitor" || COMMAND.contains("gaps_") || COMMAND.starts_with("dwindle:") || COMMAND.starts_with("master:")) {
@@ -1278,13 +1268,6 @@ std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m->m_id);
}
- if (COMMAND.contains("explicit")) {
- if (*PENABLEEXPLICIT != prevEnabledExplicit)
- g_pHyprError->queueCreate("Warning: You changed the render:explicit_sync option, this requires you to restart Hyprland.", CHyprColor(0.9, 0.76, 0.221, 1.0));
- else
- g_pHyprError->destroy();
- }
-
// Update window border colors
g_pCompositor->updateAllWindowsAnimatedDecorationValues();