summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-08-30 14:12:23 +0200
committerVaxry <vaxry@vaxry.net>2024-08-30 14:12:23 +0200
commit25e72949a1cc2368425ed81712a394cb277f514f (patch)
treeaa4ab8dee2b6b23b51a3285ad717349e1fab6aa8 /src/desktop/Window.cpp
parent259dcd838eef8d6eb2f88f2c0935e32bf7985ebd (diff)
window/xwayland: minor property cleanup
fixes #6921
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index a4ba366a..7623d45e 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -19,9 +19,8 @@ using namespace Hyprutils::String;
PHLWINDOW CWindow::create(SP<CXWaylandSurface> surface) {
PHLWINDOW pWindow = SP<CWindow>(new CWindow(surface));
- pWindow->m_pSelf = pWindow;
- pWindow->m_bIsX11 = true;
- pWindow->m_iX11Type = surface->overrideRedirect ? 2 : 1;
+ pWindow->m_pSelf = pWindow;
+ pWindow->m_bIsX11 = true;
pWindow->m_vRealPosition.create(g_pConfigManager->getAnimationPropertyConfig("windowsIn"), pWindow, AVARDAMAGE_ENTIRE);
pWindow->m_vRealSize.create(g_pConfigManager->getAnimationPropertyConfig("windowsIn"), pWindow, AVARDAMAGE_ENTIRE);
@@ -1571,3 +1570,11 @@ void CWindow::unsetWindowData(eOverridePriority priority) {
element.second(m_pSelf.lock())->unset(priority);
}
}
+
+bool CWindow::isX11OverrideRedirect() {
+ return m_pXWaylandSurface && m_pXWaylandSurface->overrideRedirect;
+}
+
+bool CWindow::isModal() {
+ return (m_pXWaylandSurface && m_pXWaylandSurface->modal);
+}