diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-12-11 22:31:38 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-12-11 22:31:38 +0000 |
| commit | cef5e6dd7ca7008456cf63a76776550974de1612 (patch) | |
| tree | 65b140e028342295e03ed1c6480ebae9cc1fc648 /src/desktop/LayerSurface.cpp | |
| parent | 7c03e9d376abe5308c47772b4c17a9c345788f60 (diff) | |
layersurface: use lastMonitor and not monitor from cursor for new ls
fixes #8622
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 2 |
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); |
