aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorsimon2008-04-07 23:47:09 +0000
committersimon2008-04-07 23:47:09 +0000
commiteb0148d6c88a8b09ab7bb1599a555cddb46671c9 (patch)
treeee45e159cad2ebc3732d7fc59e9d4651b9151968 /kbfunc.c
parent175288d152db155e72ccc6dd1be17882123923cb (diff)
downloadcwm-eb0148d6c88a8b09ab7bb1599a555cddb46671c9.tar.gz
Add quit function, bind it per default to CM-q and change exec_wm
binding to CM-w. Inital diff from Gleydson Soares Feedback from oga@ and okan@ ok oga@
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 4c63b1e..124a85a 100644
--- a/kbfunc.c
+++ b/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.17 2008/04/05 21:09:19 okan Exp $
+ * $Id: kbfunc.c,v 1.18 2008/04/07 23:47:09 simon Exp $
*/
#include <paths.h>
@@ -27,6 +27,8 @@
#define HASH_MARKER "|1|"
#define MOVE_AMOUNT 1
+extern int _xev_quit;
+
void
kbfunc_client_lower(struct client_ctx *cc, void *arg)
{
@@ -488,3 +490,9 @@ kbfunc_client_vmaximize(struct client_ctx *cc, void *arg)
{
client_vertmaximize(cc);
}
+
+void
+kbfunc_quit_wm(struct client_ctx *cc, void *arg)
+{
+ _xev_quit = 1;
+}