mirror of
https://github.com/swaywm/sway.git
synced 2026-04-07 08:21:29 -04:00
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
This commit is contained in:
parent
7aeedf0264
commit
ad7605675e
7 changed files with 24 additions and 7 deletions
|
|
@ -318,7 +318,7 @@ void update_view_border(swayc_t *view) {
|
|||
// for tabbed/stacked layouts the focused view has to draw all the
|
||||
// titlebars of the hidden views.
|
||||
swayc_t *p = NULL;
|
||||
if (view->parent->focused == view && (p = swayc_tabbed_stacked_parent(view))) {
|
||||
if (view->parent->focused == view && (p = swayc_tabbed_stacked_ancestor(view))) {
|
||||
struct wlc_geometry g = {
|
||||
.origin = {
|
||||
.x = p->x,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue