summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-13 07:45:16 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-13 07:45:16 +0000
commitd1f8097ce218ee19500b7ed551fe67fbb5d2c01c (patch)
tree8331638417173f4b312398c8223b55afc22b0388
parent4992818cdc08f2a8a3a43fa595d7832ec17662a2 (diff)
downloaduuterm-d1f8097ce218ee19500b7ed551fe67fbb5d2c01c.tar.gz
remove margin nonsense i got from reading bad source
-rw-r--r--xlib.c7
1 files 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",