mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 05:10:20 +01:00
fixes
This commit is contained in:
parent
923de357e2
commit
5e78f2cfa3
1 changed files with 4 additions and 1 deletions
|
|
@ -260,6 +260,9 @@ CXDGToplevelResource::CXDGToplevelResource(SP<CXdgToplevel> resource_, SP<CXDGSu
|
|||
if (m_parent)
|
||||
m_parent->m_children.emplace_back(m_self);
|
||||
|
||||
if (m_parent->m_window->m_pinned)
|
||||
m_self->m_window->m_pinned = true;
|
||||
|
||||
LOGM(LOG, "Toplevel {:x} sets parent to {:x}{}", (uintptr_t)this, (uintptr_t)newp.get(), (oldParent ? std::format(" (was {:x})", (uintptr_t)oldParent.get()) : ""));
|
||||
});
|
||||
}
|
||||
|
|
@ -465,7 +468,7 @@ CXDGSurfaceResource::CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBas
|
|||
|
||||
PHLWINDOW createdWindow = g_pCompositor->m_windows.emplace_back(Desktop::View::CWindow::create(m_self.lock()));
|
||||
|
||||
if (RESOURCE->m_parent)
|
||||
if (RESOURCE->m_parent && RESOURCE->m_parent->m_window->m_pinned)
|
||||
createdWindow->m_pinned = true;
|
||||
|
||||
for (auto const& p : m_popups) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue