diff options
author | okan | 2015-06-08 15:11:29 +0000 |
---|---|---|
committer | okan | 2015-06-08 15:11:29 +0000 |
commit | a9121c4a3d2d0952061f7cf9d9f32460be6f0601 (patch) | |
tree | c1491e4efd0712eb56c6738a91f9c503ddc820b3 /client.c | |
parent | 8f9657c7874a16c6c163260692f13b8105cc3c2d (diff) | |
download | cwm-a9121c4a3d2d0952061f7cf9d9f32460be6f0601.tar.gz |
stash window dimensions
Diffstat (limited to '')
-rw-r--r-- | client.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.192 2015/05/20 23:54:39 okan Exp $ + * $OpenBSD: client.c,v 1.193 2015/06/08 15:11:29 okan Exp $ */ #include <sys/types.h> @@ -874,6 +874,9 @@ client_applysizehints(struct client_ctx *cc) cc->geom.w = MAX(cc->geom.w, 1); cc->geom.h = MAX(cc->geom.h, 1); + + cc->dim.w = (cc->geom.w - cc->hint.basew) / cc->hint.incw; + cc->dim.h = (cc->geom.h - cc->hint.baseh) / cc->hint.inch; } static void |