diff options
author | okan | 2014-09-08 20:11:22 +0000 |
---|---|---|
committer | okan | 2014-09-08 20:11:22 +0000 |
commit | 943a3f1272a3549265acbce2060801cb669396bc (patch) | |
tree | 3aed9fd559210c85c755f7fee645ebaae5b54cdd /calmwm.h | |
parent | 25980c356984d6152dc3703f57d4680bb21c1f04 (diff) | |
download | cwm-943a3f1272a3549265acbce2060801cb669396bc.tar.gz |
Remove duplicate client queue (mruq); instead, remove and take the
global Clientq and place it inside screen_ctx since every client belongs
to a screen, then use the same per screen clientq to track stacking
order (the sole reason for mruq).
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 11 |
1 files changed, 4 insertions, 7 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.272 2014/09/08 13:51:29 okan Exp $ + * $OpenBSD: calmwm.h,v 1.273 2014/09/08 20:11:22 okan Exp $ */ #ifndef _CALMWM_H_ @@ -143,9 +143,8 @@ TAILQ_HEAD(winname_q, winname); TAILQ_HEAD(ignore_q, winname); struct client_ctx { - TAILQ_ENTRY(client_ctx) entry; - TAILQ_ENTRY(client_ctx) group_entry; - TAILQ_ENTRY(client_ctx) mru_entry; + TAILQ_ENTRY(client_ctx) entry; + TAILQ_ENTRY(client_ctx) group_entry; struct screen_ctx *sc; Window win; Colormap colormap; @@ -199,7 +198,6 @@ struct client_ctx { XWMHints *wmh; }; TAILQ_HEAD(client_ctx_q, client_ctx); -TAILQ_HEAD(cycle_entry_q, client_ctx); struct group_ctx { TAILQ_ENTRY(group_ctx) entry; @@ -235,7 +233,7 @@ struct screen_ctx { struct geom view; /* viewable area */ struct geom work; /* workable area, gap-applied */ struct gap gap; - struct cycle_entry_q mruq; + struct client_ctx_q clientq; struct region_ctx_q regionq; XftColor xftcolor[CWM_COLOR_NITEMS]; XftDraw *xftdraw; @@ -315,7 +313,6 @@ struct mwm_hints { extern Display *X_Dpy; extern Time Last_Event_Time; extern struct screen_ctx_q Screenq; -extern struct client_ctx_q Clientq; extern struct conf Conf; extern const char *homedir; extern int HasRandr, Randr_ev; |