Diff
1diff --git a/flake.lock b/flake.lock
2index 8cf8f62a7470e909b9575a205deab37729a3c875..35bbf41fe12174a2524604954d489d735f00b1c2 100644
3--- a/flake.lock
4+++ b/flake.lock
5@@ -9,11 +9,11 @@
6 "xdph": "xdph"
7 },
8 "locked": {
9- "lastModified": 1694554628,
10- "narHash": "sha256-ZqTV9cyrlGWLPl/fEEN1iaQ6ioSSTOiMCshgIpRSfuM=",
11+ "lastModified": 1694613741,
12+ "narHash": "sha256-8lsnX497CIKn0M2KatYtDKzRyccxQfEpuQkBO0+tKVY=",
13 "owner": "hyprwm",
14 "repo": "Hyprland",
15- "rev": "b0d5e4008b96f2cdbb6f6c2449c790d921d1546b",
16+ "rev": "84f8f4d77ddf4b6c772459584234e1f8f9d5f2ce",
17 "type": "github"
18 },
19 "original": {
20diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
21index c3b6012b15ccf86369a578b7d3fd2dbeed871790..48fd42a2cbd94c8dc815ddf689ad5b2627299ac0 100644
22--- a/src/Hy3Layout.cpp
23+++ b/src/Hy3Layout.cpp
24@@ -57,17 +57,17 @@ bool performContainment(Hy3Node& node, bool contained, CWindow* window) {
25 return false;
26 }
27
28-void Hy3Layout::onWindowCreated(CWindow* window) {
29+void Hy3Layout::onWindowCreated(CWindow* window, eDirection direction) {
30 for (auto& node: this->nodes) {
31 if (node.parent == nullptr && performContainment(node, false, window)) {
32 return;
33 }
34 }
35
36- IHyprLayout::onWindowCreated(window);
37+ IHyprLayout::onWindowCreated(window, direction);
38 }
39
40-void Hy3Layout::onWindowCreatedTiling(CWindow* window) {
41+void Hy3Layout::onWindowCreatedTiling(CWindow* window, eDirection) {
42 hy3_log(
43 TRACE,
44 "onWindowCreatedTiling called with window {:x} (floating: {})",
45diff --git a/src/Hy3Layout.hpp b/src/Hy3Layout.hpp
46index 230210c916533d48417489c975f32a797f2bb46a..885e1b6e730f8d4962a639eb342a4540fe2f4ee0 100644
47--- a/src/Hy3Layout.hpp
48+++ b/src/Hy3Layout.hpp
49@@ -66,8 +66,8 @@ enum class ExpandFullscreenOption {
50
51 class Hy3Layout: public IHyprLayout {
52 public:
53- virtual void onWindowCreated(CWindow*);
54- virtual void onWindowCreatedTiling(CWindow*);
55+ virtual void onWindowCreated(CWindow*, eDirection = DIRECTION_DEFAULT);
56+ virtual void onWindowCreatedTiling(CWindow*, eDirection = DIRECTION_DEFAULT);
57 virtual void onWindowRemovedTiling(CWindow*);
58 virtual void onWindowFocusChange(CWindow*);
59 virtual bool isWindowTiled(CWindow*);