mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
Merge pull request #2870 from RyanDwyer/refactor-input-manager
Minor refactor of input manager
This commit is contained in:
commit
75ea19c71b
28 changed files with 116 additions and 149 deletions
|
|
@ -83,7 +83,7 @@ void output_enable(struct sway_output *output, struct output_config *oc) {
|
|||
struct sway_workspace *ws = workspace_create(output, ws_name);
|
||||
// Set each seat's focus if not already set
|
||||
struct sway_seat *seat = NULL;
|
||||
wl_list_for_each(seat, &input_manager->seats, link) {
|
||||
wl_list_for_each(seat, &server.input->seats, link) {
|
||||
if (!seat->has_focus) {
|
||||
seat_set_focus_workspace(seat, ws);
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ void output_enable(struct sway_output *output, struct output_config *oc) {
|
|||
}
|
||||
wl_signal_init(&output->events.destroy);
|
||||
|
||||
input_manager_configure_xcursor(input_manager);
|
||||
input_manager_configure_xcursor();
|
||||
|
||||
wl_signal_add(&wlr_output->events.mode, &output->mode);
|
||||
wl_signal_add(&wlr_output->events.transform, &output->transform);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue