diff options
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index ad7e6de2..92b26cf8 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -24,7 +24,7 @@ void addViewCoords(void* pWindow, int* x, int* y) { void Events::listener_mapWindow(void* owner, void* data) { CWindow* PWINDOW = (CWindow*)owner; - const auto PMONITOR = g_pCompositor->getMonitorFromCursor(); + const auto PMONITOR = g_pCompositor->m_pLastMonitor; PWINDOW->m_iMonitorID = PMONITOR->ID; PWINDOW->m_bMappedX11 = true; PWINDOW->m_iWorkspaceID = PMONITOR->activeWorkspace; |
