aboutsummaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-09-22 18:52:59 +0530
committersinanmohd <sinan@firemail.cc>2023-09-22 19:25:20 +0530
commit95c60bf7b5ed47d8852c0698b69369558ff6846c (patch)
tree5580138e71a08d6b082375a9e68c2a5a260cdd6d /client.h
parent662c3b5c3c55dea5eeeb6ebad81d09b645cece4d (diff)
swallow: reimplementation after 57c70b1 by mewkl
changes: - x support - fixed to work after commit 4567979
Diffstat (limited to 'client.h')
-rw-r--r--client.h8
1 files changed, 8 insertions, 0 deletions
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)
{