mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
KNF, no binary change.
From Pierre Riteau. Thanks!
This commit is contained in:
parent
ec77265b87
commit
5034a77849
8
grab.c
8
grab.c
@ -292,8 +292,7 @@ grab_label(struct client_ctx *cc)
|
|||||||
XMapRaised(X_Dpy, sc->searchwin);
|
XMapRaised(X_Dpy, sc->searchwin);
|
||||||
|
|
||||||
XGetInputFocus(X_Dpy, &focuswin, &focusrevert);
|
XGetInputFocus(X_Dpy, &focuswin, &focusrevert);
|
||||||
XSetInputFocus(X_Dpy, sc->searchwin,
|
XSetInputFocus(X_Dpy, sc->searchwin, RevertToPointerRoot, CurrentTime);
|
||||||
RevertToPointerRoot, CurrentTime);
|
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
XMaskEvent(X_Dpy, LabelMask, &e);
|
XMaskEvent(X_Dpy, LabelMask, &e);
|
||||||
@ -348,9 +347,8 @@ grab_label(struct client_ctx *cc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
XSetInputFocus(X_Dpy, focuswin,
|
XSetInputFocus(X_Dpy, focuswin, focusrevert, CurrentTime);
|
||||||
focusrevert, CurrentTime);
|
|
||||||
XUnmapWindow(X_Dpy, sc->searchwin);
|
XUnmapWindow(X_Dpy, sc->searchwin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
group.c
2
group.c
@ -295,7 +295,7 @@ group_menu(XButtonEvent *e)
|
|||||||
else
|
else
|
||||||
_group_hide(gc);
|
_group_hide(gc);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
while ((mi = TAILQ_FIRST(&menuq)) != NULL) {
|
while ((mi = TAILQ_FIRST(&menuq)) != NULL) {
|
||||||
TAILQ_REMOVE(&menuq, mi, entry);
|
TAILQ_REMOVE(&menuq, mi, entry);
|
||||||
xfree(mi);
|
xfree(mi);
|
||||||
|
2
util.c
2
util.c
@ -49,7 +49,7 @@ u_exec(char *argstr)
|
|||||||
char *tmp;
|
char *tmp;
|
||||||
|
|
||||||
while (ap < end && (*ap = strsep(&argstr, " \t")) != NULL) {
|
while (ap < end && (*ap = strsep(&argstr, " \t")) != NULL) {
|
||||||
if(**ap == '\0')
|
if (**ap == '\0')
|
||||||
continue;
|
continue;
|
||||||
ap++;
|
ap++;
|
||||||
if (argstr != NULL) {
|
if (argstr != NULL) {
|
||||||
|
@ -342,7 +342,7 @@ xev_handle_buttonpress(struct xevent *xev, XEvent *ee)
|
|||||||
client_lower(cc);
|
client_lower(cc);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
xev_register(xev);
|
xev_register(xev);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -422,7 +422,7 @@ xev_handle_keyrelease(struct xevent *xev, XEvent *ee)
|
|||||||
*/
|
*/
|
||||||
client_mtf(NULL);
|
client_mtf(NULL);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
xev_register(xev);
|
xev_register(xev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user