aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-30 12:28:02 +0100
committerGitHub <noreply@github.com>2018-06-30 12:28:02 +0100
commitd17ca5d15be2bdeb6541ce0273472ca9a98c9864 (patch)
treedb09a5845214199b2e56aad3dabdb1373f7596d0 /sway/desktop/output.c
parent53c4467573c782b71ab6616e78834b432530f8ed (diff)
parentf42bf0ad4abe185200b68ebce4848b80366cc474 (diff)
downloadsway-d17ca5d15be2bdeb6541ce0273472ca9a98c9864.tar.xz
Merge pull request #2171 from atomnuker/master
Revert "Don't unmaximize floating views"
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index f0f1603a..e1c44a28 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -645,7 +645,7 @@ static void render_container_simple(struct sway_output *output,
if (child->sway_view->border == B_NORMAL) {
render_titlebar(output, damage, child, child->x, child->y,
child->width, colors, title_texture, marks_texture);
- } else {
+ } else if (con->sway_view->border != B_NONE) {
render_top_border(output, damage, child, colors);
}
render_view(output, damage, child, colors);
@@ -815,7 +815,7 @@ static void render_floating_container(struct sway_output *soutput,
if (con->sway_view->border == B_NORMAL) {
render_titlebar(soutput, damage, con, con->x, con->y, con->width,
colors, title_texture, marks_texture);
- } else {
+ } else if (con->sway_view->border != B_NONE) {
render_top_border(soutput, damage, con, colors);
}
render_view(soutput, damage, con, colors);