mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:49:49 +01:00
fix credentials of invalid surfaces
This commit is contained in:
parent
489ef7c51c
commit
9e028d56c0
1 changed files with 4 additions and 0 deletions
|
@ -161,6 +161,10 @@ void CWindow::updateWindowDecos() {
|
|||
pid_t CWindow::getPID() {
|
||||
pid_t PID = -1;
|
||||
if (!m_bIsX11) {
|
||||
|
||||
if (!m_bIsMapped)
|
||||
return -1;
|
||||
|
||||
wl_client_get_credentials(wl_resource_get_client(m_uSurface.xdg->resource), &PID, nullptr, nullptr);
|
||||
} else {
|
||||
PID = m_uSurface.xwayland->pid;
|
||||
|
|
Loading…
Reference in a new issue