diff options
author | MightyPlaza <[email protected]> | 2024-07-24 15:42:45 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-07-24 18:53:51 +0200 |
commit | f2b6ebbf5427c319c7b3c9621a98751598b360f9 (patch) | |
tree | c61ae6d1fdae2de48e514cc83d4c71b558bf4aa8 | |
parent | fe1975488725c006f4dc4575c1eb1df84ed1a893 (diff) | |
download | Hyprland-f2b6ebbf5427c319c7b3c9621a98751598b360f9.tar.gz Hyprland-f2b6ebbf5427c319c7b3c9621a98751598b360f9.zip |
keybinds: remove toggleopaque (#7024)
modified: src/managers/KeybindManager.cpp
modified: src/managers/KeybindManager.hpp
-rw-r--r-- | src/managers/KeybindManager.cpp | 12 | ||||
-rw-r--r-- | src/managers/KeybindManager.hpp | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 185426dd..fda27598 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -101,7 +101,6 @@ CKeybindManager::CKeybindManager() { m_mDispatchers["pass"] = pass; m_mDispatchers["sendshortcut"] = sendshortcut; m_mDispatchers["layoutmsg"] = layoutmsg; - m_mDispatchers["toggleopaque"] = toggleOpaque; m_mDispatchers["dpms"] = dpms; m_mDispatchers["movewindowpixel"] = moveWindow; m_mDispatchers["resizewindowpixel"] = resizeWindow; @@ -2237,17 +2236,6 @@ void CKeybindManager::layoutmsg(std::string msg) { g_pLayoutManager->getCurrentLayout()->layoutMessage(hd, msg); } -void CKeybindManager::toggleOpaque(std::string unused) { - const auto PWINDOW = g_pCompositor->m_pLastWindow.lock(); - - if (!PWINDOW) - return; - - PWINDOW->m_sWindowData.opaque = CWindowOverridableVar(!PWINDOW->m_sWindowData.opaque.valueOrDefault(), PRIORITY_SET_PROP); - - g_pHyprRenderer->damageWindow(PWINDOW); -} - void CKeybindManager::dpms(std::string arg) { bool enable = arg.starts_with("on"); std::string port = ""; diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index e3ba2f2d..7201df04 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -190,7 +190,6 @@ class CKeybindManager { static void pass(std::string); static void sendshortcut(std::string); static void layoutmsg(std::string); - static void toggleOpaque(std::string); static void dpms(std::string); static void swapnext(std::string); static void swapActiveWorkspaces(std::string); |