summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-10-17 10:28:00 +0000
committersabetts <sabetts>2000-10-17 10:28:00 +0000
commit32225be2681628059e6e11d3c80a10194a0cbc16 (patch)
tree4606c1097276b1d47af26f762ee6bb97d51096dd /src/events.c
parent53e1ff2c79b3b9f3bcece9281531ab6afdb844e6 (diff)
downloadratpoison-32225be2681628059e6e11d3c80a10194a0cbc16.zip
emacs now maximizes properly rxvt seems to too, but more testing will be needed.
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/events.c b/src/events.c
index d7a2c1d..b46be25 100644
--- a/src/events.c
+++ b/src/events.c
@@ -168,6 +168,7 @@ destroy_window (XDestroyWindowEvent *ev)
void
configure_request (XConfigureRequestEvent *e)
{
+ XWindowChanges wc;
XConfigureEvent ce;
rp_window *win;
@@ -175,13 +176,21 @@ configure_request (XConfigureRequestEvent *e)
if (win)
{
+ PRINT_DEBUG ("window req: %d %d %d %d %d\n", e->x, e->y, e->width, e->height, e->border_width);
+
+ wc.x = 0;
+ wc.y = 0;
+ wc.width = win->scr->root_attr.width - 1;
+ wc.height = win->scr->root_attr.height - 1;
+ wc.border_width = 0;
+
ce.type = ConfigureNotify;
ce.event = e->window;
ce.window = e->window;
ce.x = 0;
ce.y = 0;
- ce.width = win->scr->root_attr.width;
- ce.height = win->scr->root_attr.height;
+ ce.width = win->scr->root_attr.width - 1;
+ ce.height = win->scr->root_attr.height - 1;
ce.border_width = 0;
ce.above = None;
ce.override_redirect = 0;
@@ -200,6 +209,13 @@ configure_request (XConfigureRequestEvent *e)
}
XSendEvent(dpy, win->w, False, StructureNotifyMask, (XEvent*)&ce);
+ XConfigureWindow (dpy, win->w,
+ CWX | CWY | CWWidth | CWHeight | CWBorderWidth,
+ &wc);
+ }
+ else
+ {
+ PRINT_DEBUG ("FIXME: Don't handle this\n");
}
}