From 52d00ac0d9d32cbfd4d2e09dbdf91ca341e99c4d Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 15 Dec 2000 19:52:28 +0000 Subject: * actions.c (maximize): increment size in hints->width_inc and hints->height_inc intervals * manage.c (manage): set the dimension members of the rp_window struct --- src/manage.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/manage.c') diff --git a/src/manage.c b/src/manage.c index 153793d..fe04604 100644 --- a/src/manage.c +++ b/src/manage.c @@ -58,7 +58,8 @@ update_normal_hints (rp_window *win) XGetWMNormalHints (dpy, win->w, win->hints, &supplied); - PRINT_DEBUG ("hints: maxx: %d maxy: %d incx: %d incy: %d\n", + PRINT_DEBUG ("hints: minx: %d miny: %d maxx: %d maxy: %d incx: %d incy: %d\n", + win->hints->min_width, win->hints->min_height, win->hints->max_width, win->hints->max_height, win->hints->width_inc, win->hints->height_inc); } @@ -167,9 +168,13 @@ manage (rp_window *win, screen_info *s) /* Get the colormap */ XGetWindowAttributes (dpy, win->w, &attr); win->colormap = attr.colormap; + win->x = attr.x; + win->y = attr.y; + win->width = attr.width; + win->height = attr.height; /* We successfully got the name, which means we can start managing! */ - XSelectInput (dpy, win->w, PropertyChangeMask | ColormapChangeMask | StructureNotifyMask); + XSelectInput (dpy, win->w, PropertyChangeMask | ColormapChangeMask); XAddToSaveSet(dpy, win->w); grab_prefix_key (win->w); -- cgit v1.2.3