2007-04-27 11:58:48 -06:00
|
|
|
/*
|
|
|
|
* calmwm - the calm window manager
|
|
|
|
*
|
|
|
|
* Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
2007-05-28 12:34:27 -06:00
|
|
|
* $Id: geographic.c,v 1.2 2007/05/28 18:34:27 jasper Exp $
|
2007-04-27 11:58:48 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "headers.h"
|
|
|
|
#include "calmwm.h"
|
|
|
|
|
|
|
|
struct client_ctx *
|
|
|
|
geographic_west(struct client_ctx *from_cc)
|
|
|
|
{
|
|
|
|
/* Window *wins, w0, w1; */
|
|
|
|
/* struct screen_ctx *sc = screen_current(); */
|
|
|
|
/* u_int nwins, i; */
|
|
|
|
/* struct client_ctx *cc; */
|
|
|
|
|
|
|
|
screen_updatestackingorder();
|
|
|
|
|
|
|
|
return (NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
int
|
|
|
|
_visible(struct client_ctx *this_cc)
|
|
|
|
{
|
|
|
|
int stacking = cc->stackingorder;
|
|
|
|
struct client_ctx *cc;
|
|
|
|
|
|
|
|
if (cc->flags & CLIENT_HIDDEN)
|
|
|
|
return (0);
|
|
|
|
|
2007-05-28 12:34:27 -06:00
|
|
|
TAILQ_FOREACH(cc, &Clientq, entry) {
|
2007-04-27 11:58:48 -06:00
|
|
|
if (cc->flags & CLIENT_HIDDEN)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (cc->stackingorder > stacking &&
|
|
|
|
cc->geom.x <= this_cc->geom.x &&
|
|
|
|
cc->geom.y <= this_cc->geom.y &&
|
|
|
|
cc->geom.width > (this_cc->geom.width +
|
|
|
|
(this_cc->geom.x - cc->geom.x) &&
|
|
|
|
|
|
|
|
|
|
|
|
cc->geom.height > (this_cc->geom.height - cc->geom.height))
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (1);
|
|
|
|
}
|
|
|
|
#endif
|