Commit Diff


commit - 35288690ce41267ae9c6341e1d73f74c56726297
commit + e601e525deb6610eb7cb76546cde1db10c03317f
blob - 36c0cdc014c3a40cc901c67885f5d6b52ad56fd9
blob + b237cd1d9f7fa97acfeec2d3db8e1bfabd9cbc85
--- src/cmd/rio/event.c
+++ src/cmd/rio/event.c
@@ -138,8 +138,14 @@ configurereq(XConfigureRequestEvent *e)
 		if(e->value_mask & CWBorderWidth)
 			c->border = e->border_width;
 	
-		if((e->value_mask & (CWX|CWY|CWWidth|CWHeight)) == (CWWidth|CWHeight)
-		&& c->dx >= c->screen->width && c->dy >= c->screen->height){
+		if(!(e->value_mask & (CWX|CWY))){
+			e->x = 0;
+			e->y = 0;
+		}
+
+		if((e->value_mask & (CWWidth|CWHeight)) == (CWWidth|CWHeight)
+		&& c->dx >= c->screen->width && c->dy >= c->screen->height
+		&& e->x == 0 && e->y == 0){
 			c->border = 0;
 			e->value_mask |= CWX|CWY;
 		}else
blob - 2170340c94b413258d90202349a01b1986694212
blob + afb2bb8bbd3ae0f26b6c4751a332195affb84593
--- src/cmd/rio/main.c
+++ src/cmd/rio/main.c
@@ -449,7 +449,6 @@ sendconfig(Client *c)
 {
 	XConfigureEvent ce;
 
-fprintf(stderr, "send config: %p / %d %d %d %d\n", c);
 	ce.type = ConfigureNotify;
 	ce.event = c->window;
 	ce.window = c->window;
blob - e73e8ccc67490185f56e4b6d06eca2763501f3ee
blob + f29968fe59cd09d86ba9e33de0c4941d25a0c52e
--- src/cmd/rio/showevent/ShowEvent.c
+++ src/cmd/rio/showevent/ShowEvent.c
@@ -389,9 +389,7 @@ XKeyEvent *ev;
 }
 
 /* Returns the string equivalent of an atom or "None"*/
-static char *AtomName(dpy, atom)
-Display *dpy;
-Atom atom;
+static char *AtomName(Display *dpy, Atom atom)
 {
     static char buffer[256];
     char *atom_name;