From 2cc69c661a1ffb9a7de17e1a58657701edda41a6 Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 7 Dec 2017 16:25:33 +0000 Subject: Original idea from Dimitris Papastamos to move windows to corners a while ago; re-proposed by Julien Steinhauser with an updated diff. Apparently this was in the original calmnwm. However, expand the original idea and let clients 'snap' to edges instead, neatly allowing key bindings that snap to adjacent edges (i.e. corners) as well. No default bindings assigned. --- calmwm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 21fa3ae..5ee66f2 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.343 2017/12/07 16:03:10 okan Exp $ + * $OpenBSD: calmwm.h,v 1.344 2017/12/07 16:25:33 okan Exp $ */ #ifndef _CALMWM_H_ @@ -465,6 +465,7 @@ void screen_assert_clients_within(struct screen_ctx *); void kbfunc_cwm_status(void *, struct cargs *); void kbfunc_ptrmove(void *, struct cargs *); +void kbfunc_client_snap(void *, struct cargs *); void kbfunc_client_move(void *, struct cargs *); void kbfunc_client_resize(void *, struct cargs *); void kbfunc_client_delete(void *, struct cargs *); -- cgit v1.2.3-2-gb3c3