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.
This commit is contained in:
okan
2014-02-03 21:07:47 +00:00
parent 8a6dd51fac
commit f793964c9e
2 changed files with 33 additions and 23 deletions

View File

@@ -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;