summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-01-24 06:30:15 +0000
committersabetts <sabetts>2002-01-24 06:30:15 +0000
commit5d94735fde23fb1addaf17559eb64d1723b5173f (patch)
tree96332e6d4cf01a9d3ea5cc211c4864f6cef95eda /src/manage.c
parent6d3fb32f4c38bc9a49a198a0724f371ae7bc2862 (diff)
downloadratpoison-5d94735fde23fb1addaf17559eb64d1723b5173f.zip
* src/manage.c (send_configure): Change parameters to X11 window,
x, y, width, height and border. Prototype updated. All callers updated. * src/events.c (configure_request): For the changes variable, fill in geometry parameters not part of the request with the window's geometry. * src/manage.c (update_normal_hints): improve debugging output.
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/manage.c b/src/manage.c
index f1ac058..7c5c148 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -230,22 +230,22 @@ update_window_name (rp_window *win)
/* Send an artificial configure event to the window. */
void
-send_configure (rp_window *win)
+send_configure (Window w, int x, int y, int width, int height, int border)
{
XConfigureEvent ce;
ce.type = ConfigureNotify;
- ce.event = win->w;
- ce.window = win->w;
- ce.x = win->x;
- ce.y = win->y;
- ce.width = win->width;
- ce.height = win->height;
- ce.border_width = win->border;
+ ce.event = w;
+ ce.window = w;
+ ce.x = x;
+ ce.y = y;
+ ce.width = width;
+ ce.height = height;
+ ce.border_width = border;
ce.above = None;
ce.override_redirect = 0;
- XSendEvent (dpy, win->w, False, StructureNotifyMask, (XEvent*)&ce);
+ XSendEvent (dpy, w, False, StructureNotifyMask, (XEvent*)&ce);
}
void