diff options
| author | nic <ra@afu.re> | 2025-08-02 11:50:53 -0400 |
|---|---|---|
| committer | nic <ra@afu.re> | 2025-08-02 11:50:53 -0400 |
| commit | 1696d1f667098a2774d8b6af1454f408209b0764 (patch) | |
| tree | 9ad075fac93f873da34a4f275f4046b32afaf546 /client.h | |
| parent | 15bfffd87a6f9da0bc551db95c7c2a9a069b3708 (diff) | |
swallow.patch V0.7 applied
Diffstat (limited to 'client.h')
| -rw-r--r-- | client.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -131,6 +131,18 @@ client_get_appid(Client *c) return c->surface.xdg->toplevel->app_id ? c->surface.xdg->toplevel->app_id : "broken"; } +static inline int +client_get_pid(Client *c) +{ + pid_t pid; +#ifdef XWAYLAND + if (client_is_x11(c)) + return c->surface.xwayland->pid; +#endif + wl_client_get_credentials(c->surface.xdg->client->client, &pid, NULL, NULL); + return pid; +} + static inline void client_get_clip(Client *c, struct wlr_box *clip) { |
