mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-23 07:32:42 +03:00
layersurface: use lastMonitor and not monitor from cursor for new ls
fixes #8622
This commit is contained in:
parent
7c03e9d376
commit
cef5e6dd7c
@ -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 New Issue
Block a user