aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-21 09:09:53 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-01-21 09:09:53 -0500
commit0e3eae4baa7717321ec87cf2c46f6798e89e3ded (patch)
treed6624a2fa66f344d9db09e43af0fb293f2ab2d3a /sway/input/seat.c
parentrun all commands with focused container context (diff)
downloadsway-0e3eae4baa7717321ec87cf2c46f6798e89e3ded.tar.gz
sway-0e3eae4baa7717321ec87cf2c46f6798e89e3ded.tar.zst
sway-0e3eae4baa7717321ec87cf2c46f6798e89e3ded.zip
view interface
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index d24a6c7a..ae6dc7c4 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -214,7 +214,7 @@ void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container) {
214 214
215 if (container) { 215 if (container) {
216 struct sway_view *view = container->sway_view; 216 struct sway_view *view = container->sway_view;
217 view->iface.set_activated(view, true); 217 view_set_activated(view, true);
218 wl_signal_add(&container->events.destroy, &seat->focus_destroy); 218 wl_signal_add(&container->events.destroy, &seat->focus_destroy);
219 seat->focus_destroy.notify = handle_focus_destroy; 219 seat->focus_destroy.notify = handle_focus_destroy;
220 220
@@ -234,8 +234,7 @@ void sway_seat_set_focus(struct sway_seat *seat, swayc_t *container) {
234 if (last_focus && 234 if (last_focus &&
235 !sway_input_manager_has_focus(seat->input, last_focus)) { 235 !sway_input_manager_has_focus(seat->input, last_focus)) {
236 struct sway_view *view = last_focus->sway_view; 236 struct sway_view *view = last_focus->sway_view;
237 view->iface.set_activated(view, false); 237 view_set_activated(view, false);
238
239 } 238 }
240} 239}
241 240