summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2011-03-22 10:49:46 +0000
committerokan <okan>2011-03-22 10:49:46 +0000
commita12fb346a2d45a046d69c78410c1afc5e7c311d2 (patch)
tree4bdb589285770a07b666399a5349278a5973557b /xevents.c
parent00b502b1da59c43a82af9afb18f4e5cd0ea6f0c1 (diff)
downloadcwm-a12fb346a2d45a046d69c78410c1afc5e7c311d2.tar.gz
cwm-a12fb346a2d45a046d69c78410c1afc5e7c311d2.tar.xz
cwm-a12fb346a2d45a046d69c78410c1afc5e7c311d2.zip
remove XXX and move a configure event out of the event handler functions.
reminded by a similiar diff from Thomas Pfaff.

ok oga@
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/xevents.c b/xevents.c
index f4fca00..0d9799d 100644
--- a/xevents.c
+++ b/xevents.c
@@ -166,7 +166,7 @@ xev_handle_configurerequest(XEvent *ee)
 		wc.border_width = cc->bwidth;
 
 		XConfigureWindow(X_Dpy, cc->win, e->value_mask, &wc);
-		xev_reconfig(cc);
+		xu_configure(cc);
 	} else {
 		/* let it do what it wants, it'll be ours when we map it. */
 		wc.x = e->x;
@@ -213,25 +213,6 @@ test:
 
 }
 
-void
-xev_reconfig(struct client_ctx *cc)
-{
-	XConfigureEvent	 ce;
-
-	ce.type = ConfigureNotify;
-	ce.event = cc->win;
-	ce.window = cc->win;
-	ce.x = cc->geom.x;
-	ce.y = cc->geom.y;
-	ce.width = cc->geom.width;
-	ce.height = cc->geom.height;
-	ce.border_width = cc->bwidth;
-	ce.above = None;
-	ce.override_redirect = 0;
-
-	XSendEvent(X_Dpy, cc->win, False, StructureNotifyMask, (XEvent *)&ce);
-}
-
 static void
 xev_handle_enternotify(XEvent *ee)
 {
@@ -429,7 +410,6 @@ xev_handle_expose(XEvent *ee)
 		client_draw_border(cc);
 }
 
-
 volatile sig_atomic_t	_xev_quit = 0;
 
 void