mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
extend client_resize so that it can know when to reset max flags and
bwidth; this allows a client to be resized from a max state, which now gets treated like a non-max'd client. based on a diff that does part of this in a different way from Alexander Polakov.
This commit is contained in:
13
client.c
13
client.c
@@ -306,7 +306,7 @@ client_maximize(struct client_ctx *cc)
|
||||
cc->flags |= CLIENT_MAXIMIZED;
|
||||
|
||||
resize:
|
||||
client_resize(cc);
|
||||
client_resize(cc, 0);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -355,7 +355,7 @@ client_vertmaximize(struct client_ctx *cc)
|
||||
cc->flags |= CLIENT_VMAXIMIZED;
|
||||
|
||||
resize:
|
||||
client_resize(cc);
|
||||
client_resize(cc, 0);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -404,12 +404,17 @@ client_horizmaximize(struct client_ctx *cc)
|
||||
cc->flags |= CLIENT_HMAXIMIZED;
|
||||
|
||||
resize:
|
||||
client_resize(cc);
|
||||
client_resize(cc, 0);
|
||||
}
|
||||
|
||||
void
|
||||
client_resize(struct client_ctx *cc)
|
||||
client_resize(struct client_ctx *cc, int reset)
|
||||
{
|
||||
if (reset) {
|
||||
cc->flags &= ~CLIENT_MAXIMIZED;
|
||||
cc->bwidth = Conf.bwidth;
|
||||
}
|
||||
|
||||
client_draw_border(cc);
|
||||
|
||||
XMoveResizeWindow(X_Dpy, cc->win, cc->geom.x,
|
||||
|
||||
Reference in New Issue
Block a user