From 7ea555da7fff0a2457e24e06bbd34986c0755025 Mon Sep 17 00:00:00 2001 From: thejch <66577496+thejch@users.noreply.github.com> Date: Tue, 12 Mar 2024 19:09:20 -0700 Subject: master: Fix master layout window focus and scroll (#5074) * fix master switch window scrolling * fix some more dispatchers and remove some duplicate code * refactor and remove duplicate code * fix focusmonitor: https://github.com/hyprwm/Hyprland/issues/5006#issuecomment-1986977255 * change check --- src/Compositor.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index f061bf6b..4d3fd65b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2297,6 +2297,11 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode return; } + if (pWindow->m_bIsFullscreen == on) { + Debug::log(LOG, "Window is already in the required fullscreen state"); + return; + } + const auto PMONITOR = getMonitorFromID(pWindow->m_iMonitorID); const auto PWORKSPACE = getWorkspaceByID(pWindow->m_iWorkspaceID); -- cgit v1.2.3