diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-04 15:34:07 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-04 15:34:13 +0200 |
| commit | 9f3a64481ecb277de6775efbb0f3d8d7648a610c (patch) | |
| tree | 3cb4632d376e389cf2bfad882a71627e5ee95182 /src/layout/IHyprLayout.hpp | |
| parent | 69439871e60eeb16993fd6044843d14d2191c9fb (diff) | |
dwindle: add proper movement for window move binds
ditches the "movewindow = swapwindow" mechanism. Fixes #2804
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
| -rw-r--r-- | src/layout/IHyprLayout.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
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, @@ -123,6 +124,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 */ |
