From d1f8097ce218ee19500b7ed551fe67fbb5d2c01c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 13 Oct 2006 07:45:16 +0000 Subject: remove margin nonsense i got from reading bad source --- xlib.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xlib.c b/xlib.c index 36d1012..56f4955 100644 --- a/xlib.c +++ b/xlib.c @@ -84,7 +84,6 @@ int uudisp_open(struct uudisp *d) int npages; XImage image; int i, j, k; - int margin = 2; if (!(p->display = XOpenDisplay(NULL))) return -1; @@ -96,7 +95,7 @@ int uudisp_open(struct uudisp *d) p->screen = DefaultScreen(p->display); p->window = XCreateSimpleWindow(p->display, DefaultRootWindow(p->display), - 0, 0, px_w, px_h, margin, + 0, 0, px_w, px_h, 2, BlackPixel(p->display, p->screen), BlackPixel(p->display, p->screen)); XSelectInput(p->display, p->window, @@ -104,8 +103,8 @@ int uudisp_open(struct uudisp *d) size_hints.width_inc = d->cell_w; size_hints.height_inc = d->cell_h; - size_hints.min_width = d->cell_w*2 + 2*margin; - size_hints.min_height = d->cell_h*2 + 2*margin; + size_hints.min_width = d->cell_w*2; + size_hints.min_height = d->cell_h*2; size_hints.flags = PMinSize|PResizeInc; class_hint.res_name = class_hint.res_class = "UUTerm"; XmbSetWMProperties(p->display, p->window, "UUTerm", "UUTerm", -- cgit v1.2.3