diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-08 17:44:51 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-08 17:44:51 -0400 |
commit | 148f59f3a670a7008bc6c2bc07712fd58b1f6e69 (patch) | |
tree | 7feeaaac853eb847a49e583882de5be50b1c737b /sway/handlers.c | |
parent | 0427fddb5a919ae6b3a4205e057ae36133bfbc47 (diff) |
Refactor in-memory tree
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 5 |
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)); } |