summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2010-01-27 03:04:50 +0000
committerokan <okan>2010-01-27 03:04:50 +0000
commite88bda0df5002adb58fb96bd8f5b5b34f619c41d (patch)
treefe4ebd536a985ed479a7df0bf79062ca02927619 /calmwm.h
parentccb207a8a8d95d9673614727a5f60facdf57b275 (diff)
downloadcwm-e88bda0df5002adb58fb96bd8f5b5b34f619c41d.tar.gz
cwm-e88bda0df5002adb58fb96bd8f5b5b34f619c41d.tar.xz
cwm-e88bda0df5002adb58fb96bd8f5b5b34f619c41d.zip
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap.

ok oga@
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 7ce92a7..0f82243 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -65,6 +65,12 @@ struct color {
 	unsigned long	 pixel;
 	char		*name;
 };
+struct gap {
+	int		 top;
+	int		 bottom;
+	int		 left;
+	int		 right;
+};
 
 struct client_ctx;
 
@@ -97,6 +103,7 @@ struct screen_ctx {
 	int			 xmax;
 	int			 ymax;
 
+	struct gap		 gap;
 	struct cycle_entry_q	 mruq;
 
 	XftDraw			*xftdraw;
@@ -284,6 +291,7 @@ struct conf {
 	int			 bwidth;
 #define	CONF_MAMOUNT		 1
 	int			 mamount;
+	struct gap		 gap;
 
 #define CONF_COLOR_ACTIVEBORDER		"#CCCCCC"
 #define CONF_COLOR_INACTIVEBORDER	"#666666"
@@ -298,7 +306,6 @@ struct conf {
 
 #define	DEFAULTFONTNAME		 "sans-serif:pixelsize=14:bold"
 	char			*DefaultFontName;
-	int			 gap_top, gap_bottom, gap_left, gap_right;
 };
 
 /* Menu stuff */
@@ -423,6 +430,7 @@ void			 conf_bindname(struct conf *, char *, char *);
 void			 conf_mousebind(struct conf *, char *, char *);
 void			 conf_grab_mouse(struct client_ctx *);
 void			 conf_reload(struct conf *);
+void			 conf_gap(struct conf *, struct screen_ctx *);
 void			 conf_font(struct conf *, struct screen_ctx *);
 void			 conf_color(struct conf *, struct screen_ctx *);
 void			 conf_init(struct conf *);