Apply swallow patch and resolve conflicts

This commit is contained in:
FabricSoul 2025-08-04 21:20:17 -04:00
parent 8f583d2e59
commit 801d9e0cdc
6 changed files with 810 additions and 10 deletions

View file

@ -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)
{