diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-13 07:45:16 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-13 07:45:16 +0000 |
commit | d1f8097ce218ee19500b7ed551fe67fbb5d2c01c (patch) | |
tree | 8331638417173f4b312398c8223b55afc22b0388 /xlib.c | |
parent | 4992818cdc08f2a8a3a43fa595d7832ec17662a2 (diff) |
remove margin nonsense i got from reading bad source
Diffstat (limited to 'xlib.c')
-rw-r--r-- | xlib.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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", |