summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.hpp
diff options
context:
space:
mode:
authorMaarten de Vries <maarten@de-vri.es>2024-04-17 13:04:16 +0200
committerGitHub <noreply@github.com>2024-04-17 12:04:16 +0100
commite57a2d7ec87ae775828ea8628ef4eeafce8e6e70 (patch)
tree45e5f30a7e463924a380bb3394ba314667efc7bc /src/layout/IHyprLayout.hpp
parente8e02e81e84bb04efa0c926361ec80c60744f665 (diff)
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.
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
-rw-r--r--src/layout/IHyprLayout.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp
index d6c41d3b..e05580c4 100644
--- a/src/layout/IHyprLayout.hpp
+++ b/src/layout/IHyprLayout.hpp
@@ -136,7 +136,7 @@ class IHyprLayout {
Called when the user requests a window move in a direction.
The layout is free to ignore.
*/
- virtual void moveWindowTo(CWindow*, const std::string& direction) = 0;
+ virtual void moveWindowTo(CWindow*, const std::string& direction, bool silent = false) = 0;
/*
Called when the user requests to change the splitratio by or to X