diff options
author | MightyPlaza <[email protected]> | 2024-07-27 16:46:19 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-27 17:46:19 +0100 |
commit | ad711ef421fea4cfe03661ebebd465d070925437 (patch) | |
tree | cd73755f6dde3c48b4d17762f22c82104d6395df /src/desktop | |
parent | ae638d997d45e6183adafc6942b1b8fcc70f8928 (diff) | |
download | Hyprland-ad711ef421fea4cfe03661ebebd465d070925437.tar.gz Hyprland-ad711ef421fea4cfe03661ebebd465d070925437.zip |
input: unify removing currentlyDraggedWindow (#7071)
modified: src/desktop/Window.cpp
modified: src/events/Windows.cpp
modified: src/layout/IHyprLayout.cpp
modified: src/managers/KeybindManager.cpp
modified: src/managers/KeybindManager.hpp
modified: src/managers/input/InputManager.cpp
Diffstat (limited to 'src/desktop')
-rw-r--r-- | src/desktop/Window.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 7497957a..f635d367 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -477,13 +477,7 @@ void unregisterVar(void* ptr) { void CWindow::onUnmap() { static auto PCLOSEONLASTSPECIAL = CConfigValue<Hyprlang::INT>("misc:close_special_on_empty"); - - if (g_pCompositor->m_pLastWindow.lock().get() == this) - g_pCompositor->m_pLastWindow.reset(); - if (g_pInputManager->currentlyDraggedWindow.lock().get() == this) - g_pInputManager->currentlyDraggedWindow.reset(); - - static auto PINITIALWSTRACKING = CConfigValue<Hyprlang::INT>("misc:initial_workspace_tracking"); + static auto PINITIALWSTRACKING = CConfigValue<Hyprlang::INT>("misc:initial_workspace_tracking"); if (!m_szInitialWorkspaceToken.empty()) { const auto TOKEN = g_pTokenManager->getToken(m_szInitialWorkspaceToken); |