Revert "honor configrequest"

This reverts commit 1eebcd74cd.
This commit is contained in:
Julien Danjou 2008-01-05 18:31:01 +01:00
parent 1eebcd74cd
commit e833ab06d6
1 changed files with 25 additions and 21 deletions

46
event.c
View File

@ -143,29 +143,33 @@ handle_event_configurerequest(XEvent * e)
if((c = get_client_bywin(globalconf.clients, ev->window)))
{
if(ev->value_mask & CWX)
c->rx = c->x = ev->x - c->border;
if(ev->value_mask & CWY)
c->ry = c->y = ev->y - c->border;
if(ev->value_mask & CWWidth)
c->rw = c->w = ev->width;
if(ev->value_mask & CWHeight)
c->rh = c->h = ev->height;
if((ev->value_mask & (CWX | CWY)) && !(ev->value_mask & (CWWidth | CWHeight)))
window_configure(c->win, c->x, c->y, c->w, c->h, c->border);
/* recompute screen */
old_screen = c->screen;
c->screen = get_screen_bycoord(c->x, c->y);
if(old_screen != c->screen)
if(c->isfixed)
{
move_client_to_screen(c, c->screen, False);
statusbar_draw_all(old_screen);
statusbar_draw_all(c->screen);
if(ev->value_mask & CWX)
c->rx = c->x = ev->x - c->border;
if(ev->value_mask & CWY)
c->ry = c->y = ev->y - c->border;
if(ev->value_mask & CWWidth)
c->rw = c->w = ev->width;
if(ev->value_mask & CWHeight)
c->rh = c->h = ev->height;
if((ev->value_mask & (CWX | CWY)) && !(ev->value_mask & (CWWidth | CWHeight)))
window_configure(c->win, c->x, c->y, c->w, c->h, c->border);
/* recompute screen */
old_screen = c->screen;
c->screen = get_screen_bycoord(c->x, c->y);
if(old_screen != c->screen)
{
move_client_to_screen(c, c->screen, False);
statusbar_draw_all(old_screen);
statusbar_draw_all(c->screen);
}
tag_client_with_rules(c);
XMoveResizeWindow(e->xany.display, c->win, c->rx, c->ry, c->rw, c->rh);
arrange(c->screen);
}
tag_client_with_rules(c);
XMoveResizeWindow(e->xany.display, c->win, c->rx, c->ry, c->rw, c->rh);
arrange(c->screen);
window_configure(c->win, c->x, c->y, c->w, c->h, c->border);
else
window_configure(c->win, c->x, c->y, c->w, c->h, c->border);
}
else
{