diff options
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/screen.c b/screen.c index 6372362..6f73f2f 100644 --- a/screen.c +++ b/screen.c @@ -21,8 +21,6 @@ #include "headers.h" #include "calmwm.h" -extern struct screen_ctx *Curscreen; - struct screen_ctx * screen_fromroot(Window rootwin) { @@ -36,22 +34,13 @@ screen_fromroot(Window rootwin) return (TAILQ_FIRST(&Screenq)); } -struct screen_ctx * -screen_current(void) -{ - return (Curscreen); -} - void -screen_updatestackingorder(void) +screen_updatestackingorder(struct screen_ctx *sc) { 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; |