diff options
author | oga | 2009-12-10 17:16:51 +0000 |
---|---|---|
committer | oga | 2009-12-10 17:16:51 +0000 |
commit | 14ac3391c5d071a67de062f4857280212e12afdb (patch) | |
tree | 7b3c4be635704fcb02ad2444a881fe93e02b595f /client.c | |
parent | 4c4c8d61c662cfe45e4aa6b6662a1c00947225db (diff) | |
download | cwm-14ac3391c5d071a67de062f4857280212e12afdb.tar.gz |
finish unfucking the screen_ctx handling.
remove screen_current() it was utterly bogus when nscreens > 1.
pass a fake client_ctx in the case where there's no client and the
kbfunc or mousefunc doesn't need a real one, it just contains the
current screen, modify these functions so that they pass down the screen
context to their callees.
make groups per screen, it's the only way it makes sense in this regard.
ok okan@.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 6 |
1 files changed, 2 insertions, 4 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: client.c,v 1.68 2009/12/07 22:46:15 oga Exp $ + * $Id: client.c,v 1.69 2009/12/10 17:16:51 oga Exp $ */ #include "headers.h" @@ -548,14 +548,12 @@ match: } struct client_ctx * -client_cycle(int reverse) +client_cycle(struct screen_ctx *sc, int reverse) { struct client_ctx *oldcc, *newcc; - struct screen_ctx *sc; int again = 1; oldcc = client_current(); - sc = screen_current(); /* If no windows then you cant cycle */ if (TAILQ_EMPTY(&sc->mruq)) |