mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
rename seat functions
This commit is contained in:
parent
122b96abed
commit
e677c5b204
17 changed files with 85 additions and 85 deletions
|
|
@ -389,7 +389,7 @@ static void ipc_get_workspaces_callback(struct sway_container *workspace,
|
|||
// it's set differently for the get_workspaces reply
|
||||
struct sway_seat *seat =
|
||||
sway_input_manager_get_default_seat(input_manager);
|
||||
struct sway_container *focused_ws = sway_seat_get_focus(seat);
|
||||
struct sway_container *focused_ws = seat_get_focus(seat);
|
||||
if (focused_ws != NULL && focused_ws->type != C_WORKSPACE) {
|
||||
focused_ws = container_parent(focused_ws, C_WORKSPACE);
|
||||
}
|
||||
|
|
@ -399,7 +399,7 @@ static void ipc_get_workspaces_callback(struct sway_container *workspace,
|
|||
json_object_new_boolean(focused));
|
||||
json_object_array_add((json_object *)data, workspace_json);
|
||||
|
||||
focused_ws = sway_seat_get_focus_inactive(seat, workspace->parent);
|
||||
focused_ws = seat_get_focus_inactive(seat, workspace->parent);
|
||||
if (focused_ws->type != C_WORKSPACE) {
|
||||
focused_ws = container_parent(focused_ws, C_WORKSPACE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue