summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-07-13 17:16:32 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-08-01 16:57:14 +0100
commitdd1d6255f0e558f2d62e03f701440a57f65254b2 (patch)
tree996777d2bb7aa42a6c4df10532c8dffaaee2abfc
parentipc: add window::close event (diff)
downloadsway-dd1d6255f0e558f2d62e03f701440a57f65254b2.tar.gz
sway-dd1d6255f0e558f2d62e03f701440a57f65254b2.tar.zst
sway-dd1d6255f0e558f2d62e03f701440a57f65254b2.zip
ipc: add window::focus event
-rw-r--r--sway/input/seat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index a4a449e4..c85e9242 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -766,6 +766,10 @@ void seat_set_focus_warp(struct sway_seat *seat,
766 } 766 }
767 } 767 }
768 768
769 if (container->type == C_VIEW) {
770 ipc_event_window(container, "focus");
771 }
772
769 seat->has_focus = (container != NULL); 773 seat->has_focus = (container != NULL);
770 774
771 update_debug_tree(); 775 update_debug_tree();