From d906617fb681bd665d6ede26ba27f51046496e8e Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 14 Aug 2022 23:03:47 +0200 Subject: [PATCH] clean up fullscreen logic in fullscreenWindow event --- src/events/Windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 15d8d0a7c..57f7aaab1 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -481,11 +481,11 @@ void Events::listener_fullscreenWindow(void* owner, void* data) { const auto REQUESTED = &PWINDOW->m_uSurface.xdg->toplevel->requested; if (REQUESTED->fullscreen != PWINDOW->m_bIsFullscreen) - g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW, FULLSCREEN_FULL, REQUESTED->fullscreen); + g_pCompositor->setWindowFullscreen(PWINDOW, REQUESTED->fullscreen, FULLSCREEN_FULL); wlr_xdg_surface_schedule_configure(PWINDOW->m_uSurface.xdg); } else { - g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW, FULLSCREEN_FULL, !PWINDOW->m_bIsFullscreen); + g_pCompositor->setWindowFullscreen(PWINDOW, !PWINDOW->m_bIsFullscreen, FULLSCREEN_FULL); } PWINDOW->updateToplevel();