From b2e6c7013320ec03974374a1bbfc60854a2faece Mon Sep 17 00:00:00 2001 From: Rehan Date: Wed, 13 Sep 2023 19:37:58 -0400 Subject: [PATCH] fix compilation error --- src/Hy3Layout.cpp | 8 +++++++- src/Hy3Layout.hpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp index d459ba1..8c7e93e 100644 --- a/src/Hy3Layout.cpp +++ b/src/Hy3Layout.cpp @@ -67,7 +67,13 @@ void Hy3Layout::onWindowCreated(CWindow* window) { IHyprLayout::onWindowCreated(window); } -void Hy3Layout::onWindowCreatedTiling(CWindow* window) { +void Hy3Layout::onWindowCreatedTiling(CWindow* window, eDirection direction) { + hy3_log( + TRACE, + "onWindowCreatedTiling called with window {:x} (floating: {})", + (uintptr_t) window, + window->m_bIsFloating + ); if (window->m_bIsFloating) return; auto* existing = this->getNodeFromWindow(window); diff --git a/src/Hy3Layout.hpp b/src/Hy3Layout.hpp index 83f81c7..ebb4250 100644 --- a/src/Hy3Layout.hpp +++ b/src/Hy3Layout.hpp @@ -67,7 +67,7 @@ enum class ExpandFullscreenOption { class Hy3Layout: public IHyprLayout { public: virtual void onWindowCreated(CWindow*); - virtual void onWindowCreatedTiling(CWindow*); + virtual void onWindowCreatedTiling(CWindow*, eDirection direction = DIRECTION_DEFAULT); virtual void onWindowRemovedTiling(CWindow*); virtual void onWindowFocusChange(CWindow*); virtual bool isWindowTiled(CWindow*);