diff options
-rw-r--r-- | client.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -167,13 +167,15 @@ client_get_appid(Client *c) return c->surface.xdg->toplevel->app_id; } -#ifdef XWAYLAND static inline int client_get_pid(Client *c) { + #ifdef XWAYLAND return c->surface.xwayland->pid; + #else + return -1; + #endif } -#endif static inline void client_get_geometry(Client *c, struct wlr_box *geom) |