rio: more full-screen fixes.

This commit is contained in:
Russ Cox 2008-01-30 12:02:01 -05:00
parent 35288690ce
commit e601e525de
3 changed files with 9 additions and 6 deletions

View file

@ -138,8 +138,14 @@ configurereq(XConfigureRequestEvent *e)
if(e->value_mask & CWBorderWidth) if(e->value_mask & CWBorderWidth)
c->border = e->border_width; c->border = e->border_width;
if((e->value_mask & (CWX|CWY|CWWidth|CWHeight)) == (CWWidth|CWHeight) if(!(e->value_mask & (CWX|CWY))){
&& c->dx >= c->screen->width && c->dy >= c->screen->height){ 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; c->border = 0;
e->value_mask |= CWX|CWY; e->value_mask |= CWX|CWY;
}else }else

View file

@ -449,7 +449,6 @@ sendconfig(Client *c)
{ {
XConfigureEvent ce; XConfigureEvent ce;
fprintf(stderr, "send config: %p / %d %d %d %d\n", c);
ce.type = ConfigureNotify; ce.type = ConfigureNotify;
ce.event = c->window; ce.event = c->window;
ce.window = c->window; ce.window = c->window;

View file

@ -389,9 +389,7 @@ XKeyEvent *ev;
} }
/* Returns the string equivalent of an atom or "None"*/ /* Returns the string equivalent of an atom or "None"*/
static char *AtomName(dpy, atom) static char *AtomName(Display *dpy, Atom atom)
Display *dpy;
Atom atom;
{ {
static char buffer[256]; static char buffer[256];
char *atom_name; char *atom_name;