mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Revert "get/set_userdata stores swayc_t *, fixed memory leak, minor changes."
This commit is contained in:
parent
76ec9422a6
commit
ae536c21d3
6 changed files with 32 additions and 49 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) {
|
||||
while (parent->focused) {
|
||||
parent = parent->focused;
|
||||
if (parent->focused == NULL) {
|
||||
return parent;
|
||||
}
|
||||
return parent;
|
||||
return get_focused_container(parent->focused);
|
||||
}
|
||||
|
||||
void unfocus_all(swayc_t *container) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue