aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-08 17:44:51 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-08 17:44:51 -0400
commit148f59f3a670a7008bc6c2bc07712fd58b1f6e69 (patch)
tree7feeaaac853eb847a49e583882de5be50b1c737b /sway/handlers.c
parent0427fddb5a919ae6b3a4205e057ae36133bfbc47 (diff)
Refactor in-memory tree
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index af33f785..27087295 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -22,12 +22,11 @@ bool handle_view_created(wlc_handle view) {
}
void handle_view_destroyed(wlc_handle view) {
- destroy_view(view);
+ destroy_view(get_swayc_for_handle(view, &root_container));
return true;
}
void handle_view_focus(wlc_handle view, bool focus) {
- printf("View focused\n");
wlc_view_set_state(view, WLC_BIT_ACTIVATED, focus);
- focused_view = view;
+ focus_view(get_swayc_for_handle(view, &root_container));
}