diff options
author | okan | 2008-07-11 14:21:28 +0000 |
---|---|---|
committer | okan | 2008-07-11 14:21:28 +0000 |
commit | a3e52a291110ce7b866a0d11eeda1619d25f952b (patch) | |
tree | 781c99337b95a8386d0e787a95a49bf97148621c /screen.c | |
parent | dc3045573c35f2ee31dc1c012da1ff4408b6f264 (diff) | |
download | cwm-a3e52a291110ce7b866a0d11eeda1619d25f952b.tar.gz |
spacing, declaration lineup to be consistent throughout cwm,
readability, and a bit of knf.
ok oga@
Diffstat (limited to '')
-rw-r--r-- | screen.c | 14 |
1 files changed, 8 insertions, 6 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: screen.c,v 1.6 2008/05/01 18:01:13 oga Exp $ + * $Id: screen.c,v 1.7 2008/07/11 14:21:28 okan Exp $ */ #include "headers.h" @@ -27,7 +27,7 @@ extern struct screen_ctx *Curscreen; struct screen_ctx * screen_fromroot(Window rootwin) { - struct screen_ctx *sc; + struct screen_ctx *sc; TAILQ_FOREACH(sc, &Screenq, entry) if (sc->rootwin == rootwin) @@ -46,10 +46,12 @@ screen_current(void) void screen_updatestackingorder(void) { - Window *wins, w0, w1; - struct screen_ctx *sc = screen_current(); - u_int nwins, i, s; - struct client_ctx *cc; + Window *wins, w0, w1; + struct screen_ctx *sc; + struct client_ctx *cc; + u_int nwins, i, s; + + sc = screen_current(); if (!XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins)) return; |