summaryrefslogtreecommitdiff
path: root/app/cwm/screen.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2008-07-11 14:21:29 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2008-07-11 14:21:29 +0000
commit7bd488e7c78e06de5f445f4f2669397298dbfb9c (patch)
tree0684416aa66987b30b47fcde37d467d0ae4a7422 /app/cwm/screen.c
parentb8d1b4702426abb5c0ce0b5ea49d5874e1fd1e47 (diff)
spacing, declaration lineup to be consistent throughout cwm,
readability, and a bit of knf. ok oga@
Diffstat (limited to 'app/cwm/screen.c')
-rw-r--r--app/cwm/screen.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/cwm/screen.c b/app/cwm/screen.c
index 76cc8439f..9ecf699b3 100644
--- a/app/cwm/screen.c
+++ b/app/cwm/screen.c
@@ -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;