From 72197fa6a8a48682d54bd81d41ab5a00d56fd167 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 15 Oct 2015 15:07:52 +0800 Subject: style cleanup --- x-alt-tab.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'x-alt-tab.c') diff --git a/x-alt-tab.c b/x-alt-tab.c index 6d6b810..66ce6ea 100644 --- a/x-alt-tab.c +++ b/x-alt-tab.c @@ -22,16 +22,15 @@ void x_alt_tab(Rotation r, Display *dpy, Window *wins, unsigned int nwins) { XWindowAttributes attr; for (w = wins; w - wins < nwins; w++) { XGetWindowAttributes(dpy, *w, &attr); - if (attr.map_state == IsViewable) { + if (attr.map_state == IsViewable) viewables[vc++] = w; - } } viewables[vc] = NULL; // promote the bottom to top, or demote top to bottom and raise 2nd - if (r == bottom_to_top) { + if (r == bottom_to_top) w = viewables[0]; - } else { + else { XLowerWindow(dpy, *(viewables[vc - 1])); w = viewables[vc - 2]; } -- cgit v1.2.3