summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2011-06-24 06:06:24 +0000
committerokan <okan>2011-06-24 06:06:24 +0000
commit34ba6cdbcc03111d75e2336739aa70edc7da5a1d (patch)
treea0d1ba0b07ab1606184abdf22ddf02849c2e6e46 /calmwm.h
parentb230e611beebcaab31379f2230b81ab4cf6b890a (diff)
downloadcwm-34ba6cdbcc03111d75e2336739aa70edc7da5a1d.tar.gz
cwm-34ba6cdbcc03111d75e2336739aa70edc7da5a1d.tar.xz
cwm-34ba6cdbcc03111d75e2336739aa70edc7da5a1d.zip
introduce a new config option to snap to the screen edge. 'snapdist'
keyword taken from a diff from Sviatoslav Chagaev to do the same thing,
but implemented in a completely way (based on some very old code from
mk@).  default set to 0, so no behavior change.

ok oga@ (who would also like to take it further...)
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/calmwm.h b/calmwm.h
index d6b74f9..68426ac 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -273,6 +273,8 @@ struct conf {
 	int			 bwidth;
 #define	CONF_MAMOUNT			1
 	int			 mamount;
+#define	CONF_SNAPDIST			0
+	int			 snapdist;
 	struct gap		 gap;
 #define CONF_COLOR_ACTIVEBORDER		"#CCCCCC"
 #define CONF_COLOR_INACTIVEBORDER	"#666666"
@@ -325,6 +327,7 @@ void			 client_resize(struct client_ctx *);
 void			 client_send_delete(struct client_ctx *);
 void			 client_setactive(struct client_ctx *, int);
 void			 client_setname(struct client_ctx *);
+int			 client_snapcalc(int, int, int, int, int);
 void			 client_unhide(struct client_ctx *);
 void			 client_vertmaximize(struct client_ctx *);
 void			 client_warp(struct client_ctx *);