summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-12-15 19:52:28 +0000
committersabetts <sabetts>2000-12-15 19:52:28 +0000
commit52d00ac0d9d32cbfd4d2e09dbdf91ca341e99c4d (patch)
tree0249e3c89745c1ff761e42c0e3e2bbbd7ef43740 /src/manage.c
parentf9efa906115577e8f68d4f8110402890eee6d9d7 (diff)
downloadratpoison-52d00ac0d9d32cbfd4d2e09dbdf91ca341e99c4d.zip
* 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
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c9
1 files changed, 7 insertions, 2 deletions
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);