diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 45de27d0..aa0b2513 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -970,7 +970,7 @@ void Events::listener_unmanagedSetGeometry(void* owner, void* data) { } void Events::listener_setOverrideRedirect(void* owner, void* data) { - const auto PWINDOW = (CWindow*)owner; + // const auto PWINDOW = (CWindow*)owner; //if (!PWINDOW->m_bIsMapped && PWINDOW->m_uSurface.xwayland->mapped) { // Events::listener_mapWindow(PWINDOW, nullptr); diff --git a/src/managers/LayoutManager.cpp b/src/managers/LayoutManager.cpp index 12b3633e..e253e461 100644 --- a/src/managers/LayoutManager.cpp +++ b/src/managers/LayoutManager.cpp @@ -12,7 +12,7 @@ IHyprLayout* CLayoutManager::getCurrentLayout() { void CLayoutManager::switchToLayout(std::string layout) { for (size_t i = 0; i < m_vLayouts.size(); ++i) { if (m_vLayouts[i].first == layout) { - if (i == m_iCurrentLayoutID) + if (i == (size_t)m_iCurrentLayoutID) return; getCurrentLayout()->onDisable();