aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2018-11-08 15:49:42 +0000
committerokan2018-11-08 15:49:42 +0000
commitaf881b369101279aef096fd27df37be376fe1cf2 (patch)
treea1b60f77c6899aae5f83e6455fd999294220bed0 /calmwm.h
parent0ba397a7223bb60f0967b56e2e076c31b26b99ef (diff)
downloadcwm-af881b369101279aef096fd27df37be376fe1cf2.tar.gz
Use the original client border width to adjust initial placement of clients
containing {P,US}Position requests where they are explicitly set to 'ignore' in cwmrc(5); clients are unaware that their border will be altered (removed in this case) when calcuating position and thus end up a factor of their original border width off once mapped by cwm(1). cwm(1) will essentially shift the client to the edge if the original request's position and border match. Window offset noticed by at least Andre Stoebe via bugs@, and others since (and likely before). Thanks!
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 8aee760..ee16824 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -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: calmwm.h,v 1.361 2018/07/16 14:19:23 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.362 2018/11/08 15:49:42 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -130,6 +130,7 @@ struct client_ctx {
Window win;
Colormap colormap;
int bwidth; /* border width */
+ int obwidth; /* original border width */
struct geom geom, savegeom, fullgeom;
struct {
long flags; /* defined hints */