dwindle: add proper movement for window move binds
ditches the "movewindow = swapwindow" mechanism. Fixes #2804
This commit is contained in:
parent
69439871e6
commit
9f3a64481e
6 changed files with 76 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue