From 95c60bf7b5ed47d8852c0698b69369558ff6846c Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 22 Sep 2023 18:52:59 +0530 Subject: swallow: reimplementation after 57c70b1 by mewkl changes: - x support - fixed to work after commit 4567979 --- client.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client.h') diff --git a/client.h b/client.h index 5a45edc..fdea2f4 100644 --- a/client.h +++ b/client.h @@ -167,6 +167,14 @@ client_get_appid(Client *c) return c->surface.xdg->toplevel->app_id; } +#ifdef XWAYLAND +static inline int +client_get_pid(Client *c) +{ + return c->surface.xwayland->pid; +} +#endif + static inline void client_get_geometry(Client *c, struct wlr_box *geom) { -- cgit v1.2.3