From 9f3a64481ecb277de6775efbb0f3d8d7648a610c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:34:07 +0200 Subject: dwindle: add proper movement for window move binds ditches the "movewindow = swapwindow" mechanism. Fixes #2804 --- src/layout/IHyprLayout.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/layout/IHyprLayout.hpp') diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index c673b330..a0d5b2bb 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -15,7 +15,8 @@ struct SLayoutMessageHeader { enum eFullscreenMode : uint8_t; -enum eRectCorner { +enum eRectCorner +{ CORNER_NONE = 0, CORNER_TOPLEFT, CORNER_TOPRIGHT, @@ -122,6 +123,12 @@ class IHyprLayout { */ virtual void switchWindows(CWindow*, CWindow*) = 0; + /* + 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; + /* Called when the user requests to change the splitratio by or to X on a window -- cgit v1.2.3