[hackers] [st] Fixing the border pixel when there is a negative position. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Mon, 3 Sep 2012 23:11:43 +0200 (CEST)

changeset: 267:3a43123b1b69
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Mon Sep 03 23:09:34 2012 +0200
files: st.c
description:
Fixing the border pixel when there is a negative position.


diff -r 0cad7ffd5b02 -r 3a43123b1b69 st.c
--- a/st.c Mon Sep 03 23:02:29 2012 +0200
+++ b/st.c Mon Sep 03 23:09:34 2012 +0200
_AT_@ -1902,11 +1902,11 @@
         /* adjust fixed window geometry */
         if(xw.isfixed) {
                 sw = DisplayWidth(xw.dpy, xw.scr);
- sh = DisplayWidth(xw.dpy, xw.scr);
+ sh = DisplayHeight(xw.dpy, xw.scr);
                 if(xw.fx < 0)
- xw.fx = sw + xw.fx - xw.fw;
+ xw.fx = sw + xw.fx - xw.fw - 1;
                 if(xw.fy < 0)
- xw.fy = sh + xw.fy - xw.fh;
+ xw.fy = sh + xw.fy - xw.fh - 1;
         } else {
                 /* window - default size */
                 xw.h = 2*BORDER + term.row * xw.ch;
Received on Mon Sep 03 2012 - 23:11:43 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 03 2012 - 23:12:07 CEST