summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-02 18:53:11 +0000
committerVaxry <vaxry@vaxry.net>2024-03-02 18:53:17 +0000
commitd2289d8327d46e6b55c06b3c639fc138c3e02d1a (patch)
treecf37461b01347ca82e302a9d3afa1acae49937d6 /src/Window.cpp
parentbe89d6faa988f6bd33a66f02746872c649a16180 (diff)
xdg: minor improvements to initial size reporting
fixes #4918
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index 997aa3f4..335010c8 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -239,13 +239,12 @@ bool CWindow::checkInputOnDecos(const eInputType type, const Vector2D& mouseCoor
pid_t CWindow::getPID() {
pid_t PID = -1;
if (!m_bIsX11) {
-
- if (!m_bIsMapped)
+ if (!m_uSurface.xdg)
return -1;
wl_client_get_credentials(wl_resource_get_client(m_uSurface.xdg->resource), &PID, nullptr, nullptr);
} else {
- if (!m_bIsMapped)
+ if (!m_uSurface.xwayland)
return -1;
PID = m_uSurface.xwayland->pid;