summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorrcyeske <rcyeske>2000-10-20 02:54:20 +0000
committerrcyeske <rcyeske>2000-10-20 02:54:20 +0000
commit0026981538c8dc01368db4d4b32432c1140d9a38 (patch)
treec77b10b304c7aaa045ac7ee0a85630794e547235 /src/events.c
parent4b0e0a937fb526b3216acd04d5912bc3b95e857f (diff)
downloadratpoison-0026981538c8dc01368db4d4b32432c1140d9a38.zip
added unmanaged windows and window padding
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/events.c b/src/events.c
index 5f2e11d..2c75b41 100644
--- a/src/events.c
+++ b/src/events.c
@@ -99,7 +99,13 @@ map_request (XEvent *ev)
switch (win->state)
{
case STATE_UNMAPPED:
- manage (win, s);
+ if (unmanaged_window (win->w))
+ {
+ XMapRaised (dpy, win->w);
+ break;
+ }
+ else
+ manage (win, s); /* fall through */
case STATE_MAPPED:
XMapRaised (dpy, win->w);
rp_current_window = win;
@@ -168,19 +174,19 @@ configure_request (XConfigureRequestEvent *e)
{
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.x = PADDING_LEFT;
+ wc.y = PADDING_TOP;
+ wc.width = win->scr->root_attr.width - PADDING_LEFT - PADDING_RIGHT;
+ wc.height = win->scr->root_attr.height - PADDING_TOP - PADDING_BOTTOM;
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 - 1;
- ce.height = win->scr->root_attr.height - 1;
+ ce.x = PADDING_LEFT;
+ ce.y = PADDING_TOP;
+ ce.width = win->scr->root_attr.width - PADDING_LEFT - PADDING_RIGHT;
+ ce.height = win->scr->root_attr.height - PADDING_TOP - PADDING_BOTTOM;
ce.border_width = 0;
ce.above = None;
ce.override_redirect = 0;