mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
remove XXX and move a configure event out of the event handler functions.
reminded by a similiar diff from Thomas Pfaff. ok oga@
This commit is contained in:
6
client.c
6
client.c
@ -114,7 +114,7 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
|
||||
XAddToSaveSet(X_Dpy, cc->win);
|
||||
|
||||
/* Notify client of its configuration. */
|
||||
xev_reconfig(cc);
|
||||
xu_configure(cc);
|
||||
|
||||
(state == IconicState) ? client_hide(cc) : client_unhide(cc);
|
||||
xu_setstate(cc, cc->state);
|
||||
@ -390,14 +390,14 @@ client_resize(struct client_ctx *cc)
|
||||
|
||||
XMoveResizeWindow(X_Dpy, cc->win, cc->geom.x,
|
||||
cc->geom.y, cc->geom.width, cc->geom.height);
|
||||
xev_reconfig(cc);
|
||||
xu_configure(cc);
|
||||
}
|
||||
|
||||
void
|
||||
client_move(struct client_ctx *cc)
|
||||
{
|
||||
XMoveWindow(X_Dpy, cc->win, cc->geom.x, cc->geom.y);
|
||||
xev_reconfig(cc);
|
||||
xu_configure(cc);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user