Bugfix: don’t overwrite the original size of floating windows when changing border style

fixes #1263
This commit is contained in:
Michael Stapelberg
2014-06-13 22:18:36 +02:00
parent 570b5729cc
commit 2e4a2d4f30
4 changed files with 43 additions and 21 deletions

View File

@ -48,6 +48,13 @@ Rect rect_add(Rect a, Rect b) {
a.height + b.height};
}
Rect rect_sub(Rect a, Rect b) {
return (Rect){a.x - b.x,
a.y - b.y,
a.width - b.width,
a.height - b.height};
}
/*
* Returns true if the name consists of only digits.
*