diff options
author | okan | 2014-02-03 21:07:47 +0000 |
---|---|---|
committer | okan | 2014-02-03 21:07:47 +0000 |
commit | a0551f88bbfd3d91402c779824dabeb7969849a2 (patch) | |
tree | e7b8926a0fd8661e6ffa058d109c70e50eba0c2a /calmwm.h | |
parent | 2d0a84ba83633a3ef2de56baa1c9289869dafde1 (diff) | |
download | cwm-a0551f88bbfd3d91402c779824dabeb7969849a2.tar.gz |
Introduce a region queue and replace screen's XineramaScreenInfo; we
still use Xinerama to populate the regions per screen, but will switch
at a more appropriate time.
Diffstat (limited to '')
-rw-r--r-- | calmwm.h | 12 |
1 files changed, 9 insertions, 3 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. * - * $OpenBSD: calmwm.h,v 1.257 2014/02/03 20:20:39 okan Exp $ + * $OpenBSD: calmwm.h,v 1.258 2014/02/03 21:07:47 okan Exp $ */ #ifndef _CALMWM_H_ @@ -218,6 +218,13 @@ struct autogroupwin { }; TAILQ_HEAD(autogroupwin_q, autogroupwin); +struct region_ctx { + TAILQ_ENTRY(region_ctx) entry; + int num; + struct geom area; +}; +TAILQ_HEAD(region_ctx_q, region_ctx); + struct screen_ctx { TAILQ_ENTRY(screen_ctx) entry; int which; @@ -229,11 +236,10 @@ struct screen_ctx { struct geom work; /* workable area, gap-applied */ struct gap gap; struct cycle_entry_q mruq; + struct region_ctx_q regionq; XftColor xftcolor[CWM_COLOR_NITEMS]; XftDraw *xftdraw; XftFont *xftfont; - int xinerama_no; - XineramaScreenInfo *xinerama; #define CALMWM_NGROUPS 10 struct group_ctx groups[CALMWM_NGROUPS]; struct group_ctx_q groupq; |