mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
Merge remote-tracking branch 'upstream/master' into master
This commit is contained in:
commit
a69a90b4d1
2 changed files with 4 additions and 3 deletions
|
|
@ -311,9 +311,10 @@ static bool container_move_in_direction(struct sway_container *container,
|
|||
|
||||
// If container is in a split container by itself, move out of the split
|
||||
if (container->parent) {
|
||||
struct sway_container *old_parent = container->parent;
|
||||
struct sway_container *new_parent =
|
||||
container_flatten(container->parent);
|
||||
if (new_parent != container->parent) {
|
||||
if (new_parent != old_parent) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage,
|
|||
container_current_parent_layout(con);
|
||||
|
||||
if (state->border_right) {
|
||||
if (con->current.parent && siblings->length == 1 && layout == L_HORIZ) {
|
||||
if (!container_is_floating(con) && siblings->length == 1 && layout == L_HORIZ) {
|
||||
memcpy(&color, colors->indicator, sizeof(float) * 4);
|
||||
} else {
|
||||
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
||||
|
|
@ -387,7 +387,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage,
|
|||
}
|
||||
|
||||
if (state->border_bottom) {
|
||||
if (con->current.parent && siblings->length == 1 && layout == L_VERT) {
|
||||
if (!container_is_floating(con) && siblings->length == 1 && layout == L_VERT) {
|
||||
memcpy(&color, colors->indicator, sizeof(float) * 4);
|
||||
} else {
|
||||
memcpy(&color, colors->child_border, sizeof(float) * 4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue