instead of checking for flags in the client context, then removing them.

e.g.:

if (flags & flags_we_care_about)
	flags &= ~(flags_we_care_about);

just whack the flags unconditionally, it's simpler.

okan@ agrees.
This commit is contained in:
oga 2009-08-24 17:04:39 +00:00
parent 82911249e2
commit e7f0d63413

View File

@ -302,7 +302,6 @@ calc:
void void
client_resize(struct client_ctx *cc) client_resize(struct client_ctx *cc)
{ {
if (cc->flags & (CLIENT_MAXIMIZED | CLIENT_VMAXIMIZED))
cc->flags &= ~(CLIENT_MAXIMIZED | CLIENT_VMAXIMIZED); cc->flags &= ~(CLIENT_MAXIMIZED | CLIENT_VMAXIMIZED);
if (cc->flags & CLIENT_DOMAXIMIZE) { if (cc->flags & CLIENT_DOMAXIMIZE) {