commands/exec: enable targeted exec

Cause sway's internal launcher contexts to inherit the workspace of the
handler context, rather than the focused workspace. This has the same
behavior by default, but enables criteria targeted exec commands such as

'[workspace=3]' exec foot

to launch a client on workspace 3.
This commit is contained in:
Ronan Pigott 2023-02-12 10:57:10 -07:00
parent 9162b536f6
commit aabff469c6
3 changed files with 12 additions and 8 deletions

View file

@ -26,7 +26,7 @@ void launcher_ctx_consume(struct launcher_ctx *ctx);
void launcher_ctx_destroy(struct launcher_ctx *ctx);
struct launcher_ctx *launcher_ctx_create_internal(void);
struct launcher_ctx *launcher_ctx_create_internal(struct sway_node *node);
struct launcher_ctx *launcher_ctx_create(
struct wlr_xdg_activation_token_v1 *token, struct sway_node *node);