mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
fixed 2 small memory leaks & adds format attribute to log.
This commit is contained in:
parent
d3d0ba3a4b
commit
083d1eed1f
6 changed files with 26 additions and 17 deletions
|
|
@ -215,10 +215,10 @@ swayc_t *get_swayc_for_handle(wlc_handle handle, swayc_t *parent) {
|
|||
}
|
||||
|
||||
swayc_t *get_focused_container(swayc_t *parent) {
|
||||
if (parent->focused == NULL) {
|
||||
return parent;
|
||||
while (parent->focused) {
|
||||
parent = parent->focused;
|
||||
}
|
||||
return get_focused_container(parent->focused);
|
||||
return parent;
|
||||
}
|
||||
|
||||
void unfocus_all(swayc_t *container) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue