separate seat get focus and seat get focus inactive

This commit is contained in:
Tony Crisci 2018-02-07 18:17:57 -05:00
parent 7d8f2c52aa
commit a7d49da239
7 changed files with 30 additions and 24 deletions

View file

@ -282,9 +282,7 @@ struct cmd_results *handle_command(char *_exec) {
}
if (seat) {
config->handler_context.current_container =
(seat->has_focus ?
sway_seat_get_focus(seat, &root_container) :
NULL);
sway_seat_get_focus(seat);
struct cmd_results *res = handler->handle(argc-1, argv+1);
if (res->status != CMD_SUCCESS) {
free_argv(argc, argv);