aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-11 22:31:38 +0000
committerVaxry <[email protected]>2024-12-11 22:31:38 +0000
commitcef5e6dd7ca7008456cf63a76776550974de1612 (patch)
tree65b140e028342295e03ed1c6480ebae9cc1fc648 /src
parent7c03e9d376abe5308c47772b4c17a9c345788f60 (diff)
downloadHyprland-cef5e6dd7ca7008456cf63a76776550974de1612.tar.gz
Hyprland-cef5e6dd7ca7008456cf63a76776550974de1612.zip
layersurface: use lastMonitor and not monitor from cursor for new ls
fixes #8622
Diffstat (limited to 'src')
-rw-r--r--src/desktop/LayerSurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 40491123..fa421b17 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -8,7 +8,7 @@
PHLLS CLayerSurface::create(SP<CLayerShellResource> resource) {
PHLLS pLS = SP<CLayerSurface>(new CLayerSurface(resource));
- auto pMonitor = resource->monitor.empty() ? g_pCompositor->getMonitorFromCursor() : g_pCompositor->getMonitorFromName(resource->monitor);
+ auto pMonitor = resource->monitor.empty() ? g_pCompositor->m_pLastMonitor.lock() : g_pCompositor->getMonitorFromName(resource->monitor);
pLS->surface->assign(resource->surface.lock(), pLS);