aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)