aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-09-23 09:44:45 +0530
committersinanmohd <sinan@firemail.cc>2023-09-23 09:54:32 +0530
commitf42589673fa10d6f71d87b6824de21122be52a43 (patch)
treed02235937c73451aa61d0c640c8396a3ea29fba7
parent1e24a2fe3dda8d0c4e60800c10228c7da534b2a5 (diff)
client.h: clean up
-rw-r--r--client.h6
1 files 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)