diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2022-09-30 17:04:04 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2022-09-30 17:04:04 +0300 |
commit | 3e6358113acf61e0c68419bec6cc68a29603a2ec (patch) | |
tree | df0cf610de3ae08f894e198f98a094b18358a540 /src/core/window.c | |
parent | f46db3ec524d8880f64c847984f3a18e394bac2a (diff) | |
download | metacity-3e6358113acf61e0c68419bec6cc68a29603a2ec.tar.gz |
window: return _NET_WM_PID when XRes is not available
To use XResQueryClientIds we need XRes 1.2 or newer!
https://gitlab.gnome.org/GNOME/libwnck/-/issues/154
Diffstat (limited to 'src/core/window.c')
-rw-r--r-- | src/core/window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c index 1512a18e..194f42b7 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -9298,6 +9298,9 @@ meta_window_remove_pending_unmap (MetaWindow *window, pid_t meta_window_get_client_pid (MetaWindow *self) { + if (!META_DISPLAY_HAS_XRES (self->display)) + return self->net_wm_pid; + if (self->client_pid == -1) { XResClientIdSpec spec; |