From e57a2d7ec87ae775828ea8628ef4eeafce8e6e70 Mon Sep 17 00:00:00 2001 From: Maarten de Vries Date: Wed, 17 Apr 2024 13:04:16 +0200 Subject: keybindmgr: add optional `silent` suffix to `movewindow`. (#5597) With the `silent` suffix, the focus remains on the current position in the layout or the current monitor, instead of following the moved window. When combined with `movewindow mon:X`, this this allows you to get the same behavior as xmonad's `windowToScreen` command. --- src/layout/MasterLayout.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout/MasterLayout.hpp') diff --git a/src/layout/MasterLayout.hpp b/src/layout/MasterLayout.hpp index de4a97a3..de4ac41d 100644 --- a/src/layout/MasterLayout.hpp +++ b/src/layout/MasterLayout.hpp @@ -62,7 +62,7 @@ class CHyprMasterLayout : public IHyprLayout { virtual std::any layoutMessage(SLayoutMessageHeader, std::string); virtual SWindowRenderLayoutHints requestRenderHints(CWindow*); virtual void switchWindows(CWindow*, CWindow*); - virtual void moveWindowTo(CWindow*, const std::string& dir); + virtual void moveWindowTo(CWindow*, const std::string& dir, bool silent); virtual void alterSplitRatio(CWindow*, float, bool); virtual std::string getLayoutName(); virtual void replaceWindowDataWith(CWindow* from, CWindow* to); -- cgit v1.2.3