From eb0148d6c88a8b09ab7bb1599a555cddb46671c9 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 7 Apr 2008 23:47:09 +0000 Subject: 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@ --- kbfunc.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'kbfunc.c') 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 @@ -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; +} -- cgit v1.2.3-2-gb3c3