summaryrefslogtreecommitdiff
path: root/app/cwm/kbfunc.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2009-05-17 17:05:00 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2009-05-17 17:05:00 +0000
commit3359daf9731799fb956469ffedae049b5cc82e68 (patch)
tree009155efaa71b71a22831422016e2c272327b530 /app/cwm/kbfunc.c
parent198228bec553ab1e43e6ddf7950339f638844310 (diff)
add a "movetogroup" function, which hides the current window from
display and moves it to another group. useful with the recently added "grouponly" function, giving the ability to use groups as simple virtual desktops (similar to e.g. xmonad, dwm and scrotwm). this doesn't have default keyboard bindings; cwmrc(5) now shows how you could use these functions (use M-1...9 for grouponly1...9 and MS-1...9 for movetogroup1...9 to emulate the default dwm bindings). ok oga@
Diffstat (limited to 'app/cwm/kbfunc.c')
-rw-r--r--app/cwm/kbfunc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c
index 04ee7f4c9..3231190d4 100644
--- a/app/cwm/kbfunc.c
+++ b/app/cwm/kbfunc.c
@@ -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.
*
- * $Id: kbfunc.c,v 1.37 2009/05/14 16:24:04 oga Exp $
+ * $Id: kbfunc.c,v 1.38 2009/05/17 17:04:59 sthen Exp $
*/
#include <paths.h>
@@ -467,6 +467,12 @@ kbfunc_client_grouptoggle(struct client_ctx *cc, union arg *arg)
}
void
+kbfunc_client_movetogroup(struct client_ctx *cc, union arg *arg)
+{
+ group_movetogroup(cc, KBTOGROUP(arg->i));
+}
+
+void
kbfunc_client_maximize(struct client_ctx *cc, union arg *arg)
{
client_maximize(cc);