diff options
author | vaxerski <[email protected]> | 2023-09-04 15:34:07 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-04 15:34:13 +0200 |
commit | 9f3a64481ecb277de6775efbb0f3d8d7648a610c (patch) | |
tree | 3cb4632d376e389cf2bfad882a71627e5ee95182 /src/layout/MasterLayout.hpp | |
parent | 69439871e60eeb16993fd6044843d14d2191c9fb (diff) | |
download | Hyprland-9f3a64481ecb277de6775efbb0f3d8d7648a610c.tar.gz Hyprland-9f3a64481ecb277de6775efbb0f3d8d7648a610c.zip |
dwindle: add proper movement for window move binds
ditches the "movewindow = swapwindow" mechanism. Fixes #2804
Diffstat (limited to 'src/layout/MasterLayout.hpp')
-rw-r--r-- | src/layout/MasterLayout.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layout/MasterLayout.hpp b/src/layout/MasterLayout.hpp index 251e95f5..7cc11511 100644 --- a/src/layout/MasterLayout.hpp +++ b/src/layout/MasterLayout.hpp @@ -9,7 +9,8 @@ enum eFullscreenMode : uint8_t; //orientation determines which side of the screen the master area resides -enum eOrientation : uint8_t { +enum eOrientation : uint8_t +{ ORIENTATION_LEFT = 0, ORIENTATION_TOP, ORIENTATION_RIGHT, @@ -56,6 +57,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 alterSplitRatio(CWindow*, float, bool); virtual std::string getLayoutName(); virtual void replaceWindowDataWith(CWindow* from, CWindow* to); |