mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 07:10:02 +01:00
Added check to pin child windows
This commit is contained in:
parent
7098558420
commit
43b1e98f01
1 changed files with 7 additions and 0 deletions
|
|
@ -7,7 +7,10 @@
|
|||
#include "../helpers/Monitor.hpp"
|
||||
#include "core/Seat.hpp"
|
||||
#include "core/Compositor.hpp"
|
||||
#include "desktop/DesktopTypes.hpp"
|
||||
#include "desktop/Window.hpp"
|
||||
#include "protocols/core/Output.hpp"
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
#include <ranges>
|
||||
|
||||
|
|
@ -462,6 +465,10 @@ CXDGSurfaceResource::CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBas
|
|||
|
||||
g_pCompositor->m_windows.emplace_back(Desktop::View::CWindow::create(m_self.lock()));
|
||||
|
||||
if (RESOURCE->m_parent != nullptr) {
|
||||
g_pCompositor->m_windows.back()->m_pinned = true;
|
||||
}
|
||||
|
||||
for (auto const& p : m_popups) {
|
||||
if (!p)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue