about summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authoranton <anton>2018-02-19 19:29:42 +0000
committeranton <anton>2018-02-19 19:29:42 +0000
commitcae69879221ff88eca85c731246eaf33a51ea50e (patch)
tree05400c8903ee52678b505d19aa97f0a8ffe71593 /calmwm.h
parentc6745ee21cabbdad5791494bb1d0a754ee264c39 (diff)
parent05510941822cb14969bae35d57ff7778fc4daee1 (diff)
downloadcwm-cae69879221ff88eca85c731246eaf33a51ea50e.tar.gz
cwm-cae69879221ff88eca85c731246eaf33a51ea50e.tar.xz
cwm-cae69879221ff88eca85c731246eaf33a51ea50e.zip
cvsimport
* refs/heads/master:
  Do not print any parse errors when ~/.cwmrc is missing. Regression introduced in revision 1.109 of calmwm.c.
  Store the screen's visual type and colormap.
  Consolidate region 'view' and 'area'.
  limit scope of screen_apply_gap()
  Clean up conf_file/homedir and conf_init() bits.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/calmwm.h b/calmwm.h
index 7cf30c4..033202d 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -66,8 +66,6 @@ size_t strlcpy(char *, const char *, size_t);
 #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
 #endif
 
-#define	CONFFILE	".cwmrc"
-
 #define BUTTONMASK	(ButtonPressMask | ButtonReleaseMask)
 #define MOUSEMASK	(BUTTONMASK | PointerMotionMask)
 #define MENUMASK 	(MOUSEMASK | ButtonMotionMask | KeyPressMask | \
@@ -227,7 +225,6 @@ TAILQ_HEAD(autogroup_q, autogroup);
 struct region_ctx {
 	TAILQ_ENTRY(region_ctx)	 entry;
 	int			 num;
-	struct geom		 area;
 	struct geom		 view; /* viewable area */
 	struct geom		 work; /* workable area, gap-applied */
 };
@@ -247,6 +244,8 @@ struct screen_ctx {
 	struct region_q		 regionq;
 	struct group_q		 groupq;
 	struct group_ctx	*group_active;
+	Colormap		 colormap;
+	Visual			*visual;
 	struct {
 		Window		 win;
 		XftDraw		*xftdraw;
@@ -329,10 +328,10 @@ struct conf {
 	Cursor			 cursor[CF_NITEMS];
 	int			 xrandr;
 	int			 xrandr_event_base;
-	char			*homedir;
+	char			*conf_file;
 	char			*known_hosts;
 	char			*wm_argv;
-	u_int32_t		 debug;
+	int			 debug;
 };
 
 /* MWM hints */
@@ -499,7 +498,6 @@ void			 search_print_text(struct menu *, int);
 void			 search_print_wm(struct menu *, int);
 
 struct region_ctx	*region_find(struct screen_ctx *, int, int);
-struct geom		 screen_apply_gap(struct screen_ctx *, struct geom);
 struct screen_ctx	*screen_find(Window);
 struct geom		 screen_area(struct screen_ctx *, int, int,
 			     enum apply_gap);