From f42589673fa10d6f71d87b6824de21122be52a43 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 23 Sep 2023 09:44:45 +0530 Subject: client.h: clean up --- client.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client.h b/client.h index fdea2f4..c141493 100644 --- a/client.h +++ b/client.h @@ -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) -- cgit v1.2.3