mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
parent
ee32586f8c
commit
b935aafa32
3 changed files with 8 additions and 8 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -9,11 +9,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1694554628,
|
||||
"narHash": "sha256-ZqTV9cyrlGWLPl/fEEN1iaQ6ioSSTOiMCshgIpRSfuM=",
|
||||
"lastModified": 1694613741,
|
||||
"narHash": "sha256-8lsnX497CIKn0M2KatYtDKzRyccxQfEpuQkBO0+tKVY=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "b0d5e4008b96f2cdbb6f6c2449c790d921d1546b",
|
||||
"rev": "84f8f4d77ddf4b6c772459584234e1f8f9d5f2ce",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -57,17 +57,17 @@ bool performContainment(Hy3Node& node, bool contained, CWindow* window) {
|
|||
return false;
|
||||
}
|
||||
|
||||
void Hy3Layout::onWindowCreated(CWindow* window) {
|
||||
void Hy3Layout::onWindowCreated(CWindow* window, eDirection direction) {
|
||||
for (auto& node: this->nodes) {
|
||||
if (node.parent == nullptr && performContainment(node, false, window)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
IHyprLayout::onWindowCreated(window);
|
||||
IHyprLayout::onWindowCreated(window, direction);
|
||||
}
|
||||
|
||||
void Hy3Layout::onWindowCreatedTiling(CWindow* window) {
|
||||
void Hy3Layout::onWindowCreatedTiling(CWindow* window, eDirection) {
|
||||
hy3_log(
|
||||
TRACE,
|
||||
"onWindowCreatedTiling called with window {:x} (floating: {})",
|
||||
|
|
|
@ -66,8 +66,8 @@ enum class ExpandFullscreenOption {
|
|||
|
||||
class Hy3Layout: public IHyprLayout {
|
||||
public:
|
||||
virtual void onWindowCreated(CWindow*);
|
||||
virtual void onWindowCreatedTiling(CWindow*);
|
||||
virtual void onWindowCreated(CWindow*, eDirection = DIRECTION_DEFAULT);
|
||||
virtual void onWindowCreatedTiling(CWindow*, eDirection = DIRECTION_DEFAULT);
|
||||
virtual void onWindowRemovedTiling(CWindow*);
|
||||
virtual void onWindowFocusChange(CWindow*);
|
||||
virtual bool isWindowTiled(CWindow*);
|
||||
|
|
Loading…
Add table
Reference in a new issue