summaryrefslogtreecommitdiff
path: root/app/cwm/client.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-12-10 17:16:52 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-12-10 17:16:52 +0000
commitf472b6c78f3f4830282f0a50d2f26af97702718e (patch)
treea611f5ade2fe53c69bc5fc35bac7e965d97a47b7 /app/cwm/client.c
parent162d183ea683d0a87e08f92bb075d26f504d7a76 (diff)
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 'app/cwm/client.c')
-rw-r--r--app/cwm/client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index a8eaf06ea..5afb3128a 100644
--- a/app/cwm/client.c
+++ b/app/cwm/client.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: 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))