mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Refactor in-memory tree
This commit is contained in:
parent
0427fddb5a
commit
148f59f3a6
4 changed files with 133 additions and 90 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue