From ac2f1a9c30cfe208478d8021cabb227ae9cb0c9f Mon Sep 17 00:00:00 2001 From: memchr <118117622+memchr@users.noreply.github.com> Date: Sun, 10 Sep 2023 22:29:10 +0000 Subject: feat: add a new movewindoworgroup dispatcher (#3006) --- src/managers/KeybindManager.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/managers/KeybindManager.hpp') diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index af938c42..50a4321f 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -28,8 +28,7 @@ struct SKeybind { bool shadowed = false; }; -enum eFocusWindowMode -{ +enum eFocusWindowMode { MODE_CLASS_REGEX = 0, MODE_TITLE_REGEX, MODE_ADDRESS, @@ -92,6 +91,8 @@ class CKeybindManager { bool ensureMouseBindState(); static bool tryMoveFocusToMonitor(CMonitor* monitor); + static void moveWindowOutOfGroup(CWindow* pWindow); + static void moveWindowIntoGroup(CWindow* pWindow, CWindow* pWindowInDirection); static void switchToWindow(CWindow* PWINDOWTOCHANGETO); // -------------- Dispatchers -------------- // @@ -147,6 +148,8 @@ class CKeybindManager { static void moveIntoGroup(std::string); static void moveOutOfGroup(std::string); static void moveGroupWindow(std::string); + static void moveWindowOrGroup(std::string); + static void setIgnoreGroupLock(std::string); static void global(std::string); friend class CCompositor; -- cgit v1.2.3