Hyprland/src/layout
memchr bca3068db2
feat: add lockactivegroup dispatcher (#2478)
* feat: add lockactivegroup dispatcher

The `lockactivewindow` dispatcher takes `lock`, `toggle` or `unlock` as arguments. When a group is locked, no window or group can be added to it, nor can it be added to another group, but the `moveintogroup` and `moveoutofgroup` dispatches are not affected.

Implementation details:

the lock is implement via `SGroupData.locked` flag (defaults to false).

The flag is only relevant to the group head, and upon the group head's succession, the flag will be passed down to the new head. Meanwhile, the old head's flag will be set to false.

The flag is set to false when a group is dismissed.

New condition checks have been added to the dwindle and master layout to check if target group is unlocked (and if the source is also a group and unlocked) before adding windows to the target group.

* refactor: `lockactivegroup dispatcher code ordering
2023-06-09 23:44:18 +02:00
..
DwindleLayout.cpp feat: add lockactivegroup dispatcher (#2478) 2023-06-09 23:44:18 +02:00
DwindleLayout.hpp Add split preselection (#2240) 2023-05-06 01:02:18 +01:00
IHyprLayout.cpp feat: add lockactivegroup dispatcher (#2478) 2023-06-09 23:44:18 +02:00
IHyprLayout.hpp layout: don't reset to floating size on drag tiled 2023-05-29 18:05:41 +02:00
MasterLayout.cpp feat: add lockactivegroup dispatcher (#2478) 2023-06-09 23:44:18 +02:00
MasterLayout.hpp Added center orientation to master layout (#1642) 2023-02-26 23:12:14 +00:00