mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 18:29:49 +01:00
layersurface: use lastMonitor and not monitor from cursor for new ls
fixes #8622
This commit is contained in:
parent
7c03e9d376
commit
cef5e6dd7c
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
PHLLS CLayerSurface::create(SP<CLayerShellResource> resource) {
|
PHLLS CLayerSurface::create(SP<CLayerShellResource> resource) {
|
||||||
PHLLS pLS = SP<CLayerSurface>(new CLayerSurface(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);
|
pLS->surface->assign(resource->surface.lock(), pLS);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue