From b935aafa32a0e99d40d99a8f561edaff2733cc38 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Thu, 14 Sep 2023 00:59:21 -0700 Subject: [PATCH] Fix compilation Fixes #32 --- flake.lock | 6 +++--- src/Hy3Layout.cpp | 6 +++--- src/Hy3Layout.hpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index 8cf8f62..35bbf41 100644 --- a/flake.lock +++ b/flake.lock @@ -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": { diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp index c3b6012..48fd42a 100644 --- a/src/Hy3Layout.cpp +++ b/src/Hy3Layout.cpp @@ -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: {})", diff --git a/src/Hy3Layout.hpp b/src/Hy3Layout.hpp index 230210c..885e1b6 100644 --- a/src/Hy3Layout.hpp +++ b/src/Hy3Layout.hpp @@ -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*);