mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
use similiar style for client flags
This commit is contained in:
8
client.c
8
client.c
@@ -187,7 +187,7 @@ client_setactive(struct client_ctx *cc)
|
||||
XInstallColormap(X_Dpy, cc->colormap);
|
||||
|
||||
if ((cc->flags & CLIENT_INPUT) ||
|
||||
((cc->flags & CLIENT_WM_TAKE_FOCUS) == 0)) {
|
||||
(!(cc->flags & CLIENT_WM_TAKE_FOCUS))) {
|
||||
XSetInputFocus(X_Dpy, cc->win,
|
||||
RevertToPointerRoot, CurrentTime);
|
||||
}
|
||||
@@ -260,7 +260,7 @@ client_fullscreen(struct client_ctx *cc)
|
||||
!(cc->flags & CLIENT_FULLSCREEN))
|
||||
return;
|
||||
|
||||
if ((cc->flags & CLIENT_FULLSCREEN)) {
|
||||
if (cc->flags & CLIENT_FULLSCREEN) {
|
||||
cc->bwidth = Conf.bwidth;
|
||||
cc->geom = cc->fullgeom;
|
||||
cc->flags &= ~(CLIENT_FULLSCREEN | CLIENT_FREEZE);
|
||||
@@ -297,12 +297,12 @@ client_maximize(struct client_ctx *cc)
|
||||
goto resize;
|
||||
}
|
||||
|
||||
if ((cc->flags & CLIENT_VMAXIMIZED) == 0) {
|
||||
if (!(cc->flags & CLIENT_VMAXIMIZED)) {
|
||||
cc->savegeom.h = cc->geom.h;
|
||||
cc->savegeom.y = cc->geom.y;
|
||||
}
|
||||
|
||||
if ((cc->flags & CLIENT_HMAXIMIZED) == 0) {
|
||||
if (!(cc->flags & CLIENT_HMAXIMIZED)) {
|
||||
cc->savegeom.w = cc->geom.w;
|
||||
cc->savegeom.x = cc->geom.x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user