From 0b83386bff6236abc9aff3593954575f60b0ac69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Mon, 21 Apr 2014 20:40:01 +0200 Subject: [PATCH] Do not center window on screen, workaround for issue #9 --- Makefile | 2 +- window.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ff79029..643ed15 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = git-20140406 +VERSION = git-20140421 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man diff --git a/window.c b/window.c index ae169a4..3cf4379 100644 --- a/window.c +++ b/window.c @@ -224,7 +224,7 @@ void win_open(win_t *win) } sizehints.flags |= USPosition; } else { - win->x = (e->scrw - win->w) / 2; + win->x = 0; } if ((gmask & YValue) != 0) { if ((gmask & YNegative) != 0) { @@ -234,7 +234,7 @@ void win_open(win_t *win) } sizehints.flags |= USPosition; } else { - win->y = (e->scrh - win->h) / 2; + win->y = 0; } attr.background_pixel = win->bgcol;