summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-05 22:04:49 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-05 22:04:49 +0200
commitc1bc8d46e971b218b43bcbc31f0a854a5df5c0c9 (patch)
treeafb116311b361832c90fc5ca61c0fdbab6818ffe /src/events/Windows.cpp
parent94ca386a8c298265fa5fb19ee2ec2be3db335502 (diff)
use lastMonitor in mapWindow
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp2
1 files changed, 1 insertions, 1 deletions
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;