action: If we have a view that is an activator, use that instead of the current focus window

If we don't switch focus, we want the close button to close the window associated with it, not the current focus window.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2021-12-03 16:37:53 +00:00 committed by Johan Malm
parent f9f9d809c8
commit d568c60003
5 changed files with 26 additions and 20 deletions

View file

@ -472,7 +472,7 @@ void server_init(struct server *server);
void server_start(struct server *server);
void server_finish(struct server *server);
void action(struct server *server, const char *action, const char *command,
void action(struct view *activator, struct server *server, const char *action, const char *command,
uint32_t resize_edges);
/* update onscreen display 'alt-tab' texture */