Bugfix: Retain absolute window position and size when changing floating borders (Thanks binzter)

Fixes: #561
This commit is contained in:
Michael Stapelberg
2011-11-26 21:18:23 +00:00
parent c36042dfb1
commit 970d11709e
3 changed files with 58 additions and 3 deletions

View File

@ -719,10 +719,12 @@ border:
TAILQ_FOREACH(current, &owindows, owindows) {
printf("matching: %p / %s\n", current->con, current->con->name);
int border_style = current->con->border_style;
if ($2 == TOK_TOGGLE) {
current->con->border_style++;
current->con->border_style %= 3;
} else current->con->border_style = $2;
border_style++;
border_style %= 3;
} else border_style = $2;
con_set_border_style(current->con, border_style);
}
tree_render();