aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2011-06-24 06:06:24 +0000
committerokan2011-06-24 06:06:24 +0000
commitab4a3c9a9f59f702603e19f3eb3508a815521d6c (patch)
treeac1d554c262b5b74f3aaca048f357f87469c49c7 /calmwm.h
parentc94e1a5dfb1df6ef5292efe8116084f95220d1a1 (diff)
downloadcwm-ab4a3c9a9f59f702603e19f3eb3508a815521d6c.tar.gz
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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 8e37e3b..75ef1df 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -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.130 2011/06/24 06:01:47 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.131 2011/06/24 06:06:24 okan Exp $
*/
#ifndef _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 *);