keybinds: remove toggleopaque (#7024)

modified:   src/managers/KeybindManager.cpp
modified:   src/managers/KeybindManager.hpp
This commit is contained in:
MightyPlaza 2024-07-24 15:42:45 +00:00 committed by Vaxry
parent fe19754887
commit f2b6ebbf54
2 changed files with 0 additions and 13 deletions

View file

@ -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 = "";

View file

@ -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);