mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 08:21:28 +00:00
draw indicator border only for non-floating
This commit is contained in:
parent
cd64df9b3a
commit
77f99480ae
|
@ -124,7 +124,7 @@ static void render_borders(swayc_t *view, cairo_t *cr, struct border_colors *col
|
||||||
// right border
|
// right border
|
||||||
int right_border = b->size.w - v->size.w - left_border;
|
int right_border = b->size.w - v->size.w - left_border;
|
||||||
if (right_border > 0) {
|
if (right_border > 0) {
|
||||||
if (is_only_child && layout == L_HORIZ) {
|
if (is_only_child && layout == L_HORIZ && !view->is_floating) {
|
||||||
color = colors->indicator;
|
color = colors->indicator;
|
||||||
} else {
|
} else {
|
||||||
color = colors->child_border;
|
color = colors->child_border;
|
||||||
|
@ -150,7 +150,7 @@ static void render_borders(swayc_t *view, cairo_t *cr, struct border_colors *col
|
||||||
// bottom border
|
// bottom border
|
||||||
int bottom_border = b->size.h - (top_border + v->size.h);
|
int bottom_border = b->size.h - (top_border + v->size.h);
|
||||||
if (bottom_border > 0) {
|
if (bottom_border > 0) {
|
||||||
if (is_only_child && layout == L_VERT) {
|
if (is_only_child && layout == L_VERT && !view->is_floating) {
|
||||||
color = colors->indicator;
|
color = colors->indicator;
|
||||||
} else {
|
} else {
|
||||||
color = colors->child_border;
|
color = colors->child_border;
|
||||||
|
|
Loading…
Reference in a new issue