diff options
author | oga | 2008-05-15 22:18:00 +0000 |
---|---|---|
committer | oga | 2008-05-15 22:18:00 +0000 |
commit | 6a2c99a2df8d170eda74cccacbb5a5225d617d21 (patch) | |
tree | 0c8e74b70b51716961b2eb2057f7a26aa4e58de4 /grab.c | |
parent | 15b4ab26e054ad00b82c48c070089cdb52cc823c (diff) | |
download | cwm-6a2c99a2df8d170eda74cccacbb5a5225d617d21.tar.gz |
KNF, no binary change.
From Pierre Riteau. Thanks!
Diffstat (limited to 'grab.c')
-rw-r--r-- | grab.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: grab.c,v 1.9 2008/04/15 20:24:41 oga Exp $ + * $Id: grab.c,v 1.10 2008/05/15 22:18:00 oga Exp $ */ #include "headers.h" @@ -292,8 +292,7 @@ grab_label(struct client_ctx *cc) XMapRaised(X_Dpy, sc->searchwin); XGetInputFocus(X_Dpy, &focuswin, &focusrevert); - XSetInputFocus(X_Dpy, sc->searchwin, - RevertToPointerRoot, CurrentTime); + XSetInputFocus(X_Dpy, sc->searchwin, RevertToPointerRoot, CurrentTime); for (;;) { XMaskEvent(X_Dpy, LabelMask, &e); @@ -301,7 +300,7 @@ grab_label(struct client_ctx *cc) switch (e.type) { case KeyPress: if (input_keycodetrans(e.xkey.keycode, e.xkey.state, - &ctl, &chr, 0) < 0) + &ctl, &chr, 0) < 0) continue; switch (ctl) { @@ -348,9 +347,8 @@ grab_label(struct client_ctx *cc) } } - out: - XSetInputFocus(X_Dpy, focuswin, - focusrevert, CurrentTime); +out: + XSetInputFocus(X_Dpy, focuswin, focusrevert, CurrentTime); XUnmapWindow(X_Dpy, sc->searchwin); } |