mirror of
https://github.com/swaywm/sway.git
synced 2025-10-28 05:40:16 -04:00
Add xdg_toplevel tag to IPC
This commit is contained in:
parent
3826535ab0
commit
08142c3f3a
2 changed files with 7 additions and 0 deletions
|
|
@ -627,6 +627,9 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
|
|||
json_object_object_add(object, "sandbox_instance_id",
|
||||
sandbox_instance_id ? json_object_new_string(sandbox_instance_id) : NULL);
|
||||
|
||||
const char *tag = view_get_tag(c->view);
|
||||
json_object_object_add(object, "tag", tag ? json_object_new_string(tag) : NULL);
|
||||
|
||||
json_object *idle_inhibitors = json_object_new_object();
|
||||
|
||||
struct sway_idle_inhibitor_v1 *user_inhibitor =
|
||||
|
|
|
|||
|
|
@ -419,6 +419,10 @@ node and will have the following properties:
|
|||
: string
|
||||
: (Only windows) The instance ID provided by the associated sandbox engine (or
|
||||
_null_)
|
||||
|- tag
|
||||
: string
|
||||
: (Only windows) For an xdg-shell window, tag of the toplevel, if set.
|
||||
Otherwise, _null_
|
||||
|- window
|
||||
: integer
|
||||
: (Only xwayland windows) The X11 window ID for the xwayland window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue