diff options
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 5 | ||||
-rw-r--r-- | sway/desktop/wl_shell.c | 5 | ||||
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 5 | ||||
-rw-r--r-- | sway/desktop/xwayland.c | 6 |
4 files changed, 4 insertions, 17 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 0e7f7060..af067326 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -136,10 +136,7 @@ void output_add_notify(struct wl_listener *listener, void *data) { | |||
136 | output->resolution.notify = output_resolution_notify; | 136 | output->resolution.notify = output_resolution_notify; |
137 | wl_signal_add(&wlr_output->events.resolution, &output->resolution); | 137 | wl_signal_add(&wlr_output->events.resolution, &output->resolution); |
138 | 138 | ||
139 | for (int i = 0; i < server->input->seats->length; ++i) { | 139 | sway_input_manager_configure_xcursor(input_manager); |
140 | struct sway_seat *seat = server->input->seats->items[i]; | ||
141 | sway_seat_configure_xcursor(seat); | ||
142 | } | ||
143 | 140 | ||
144 | arrange_windows(output->swayc, -1, -1); | 141 | arrange_windows(output->swayc, -1, -1); |
145 | } | 142 | } |
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c index 3d3b1c44..df81d5be 100644 --- a/sway/desktop/wl_shell.c +++ b/sway/desktop/wl_shell.c | |||
@@ -129,8 +129,5 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) { | |||
129 | 129 | ||
130 | arrange_windows(cont->parent, -1, -1); | 130 | arrange_windows(cont->parent, -1, -1); |
131 | 131 | ||
132 | for (int i = 0; i < server->input->seats->length; ++i) { | 132 | sway_input_manager_set_focus(input_manager, cont); |
133 | struct sway_seat *seat = server->input->seats->items[i]; | ||
134 | sway_seat_set_focus(seat, cont); | ||
135 | } | ||
136 | } | 133 | } |
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index 8ad6a5ec..82775e2f 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c | |||
@@ -135,8 +135,5 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { | |||
135 | 135 | ||
136 | arrange_windows(cont->parent, -1, -1); | 136 | arrange_windows(cont->parent, -1, -1); |
137 | 137 | ||
138 | for (int i = 0; i < server->input->seats->length; ++i) { | 138 | sway_input_manager_set_focus(input_manager, cont); |
139 | struct sway_seat *seat = server->input->seats->items[i]; | ||
140 | sway_seat_set_focus(seat, cont); | ||
141 | } | ||
142 | } | 139 | } |
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 724c8a82..a7e84aa1 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -173,9 +173,5 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) { | |||
173 | sway_view->swayc = cont; | 173 | sway_view->swayc = cont; |
174 | 174 | ||
175 | arrange_windows(cont->parent, -1, -1); | 175 | arrange_windows(cont->parent, -1, -1); |
176 | 176 | sway_input_manager_set_focus(input_manager, cont); | |
177 | for (int i = 0; i < server->input->seats->length; ++i) { | ||
178 | struct sway_seat *seat = server->input->seats->items[i]; | ||
179 | sway_seat_set_focus(seat, cont); | ||
180 | } | ||
181 | } | 177 | } |