From c1bc8d46e971b218b43bcbc31f0a854a5df5c0c9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 5 Sep 2022 22:04:49 +0200 Subject: [PATCH] use lastMonitor in mapWindow --- src/events/Windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 66054ea2..773b9a88 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -50,7 +50,7 @@ void Events::listener_mapWindow(void* owner, void* data) { static auto *const PACTIVEALPHA = &g_pConfigManager->getConfigValuePtr("decoration:active_opacity")->floatValue; static auto *const PDIMSTRENGTH = &g_pConfigManager->getConfigValuePtr("decoration:dim_strength")->floatValue; - const auto PMONITOR = g_pCompositor->getMonitorFromCursor(); + const auto PMONITOR = g_pCompositor->m_pLastMonitor; const auto PWORKSPACE = PMONITOR->specialWorkspaceOpen ? g_pCompositor->getWorkspaceByID(SPECIAL_WORKSPACE_ID) : g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace); PWINDOW->m_iMonitorID = PMONITOR->ID; PWINDOW->m_bMappedX11 = true;