summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick <devnull@mailinator.com>2015-10-15 15:07:52 +0800
committerPatrick <devnull@mailinator.com>2015-10-15 15:07:52 +0800
commit72197fa6a8a48682d54bd81d41ab5a00d56fd167 (patch)
treebde756adb1dd8ff3f987d67d3eaacd3886c78860
parent12ae8e8496a3374db7d77b13f0810623f38d5a86 (diff)
style cleanup
-rw-r--r--x-alt-tab.c7
1 files changed, 3 insertions, 4 deletions
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];
}