diff options
author | simon | 2008-04-07 23:47:09 +0000 |
---|---|---|
committer | simon | 2008-04-07 23:47:09 +0000 |
commit | eb0148d6c88a8b09ab7bb1599a555cddb46671c9 (patch) | |
tree | ee45e159cad2ebc3732d7fc59e9d4651b9151968 /kbfunc.c | |
parent | 175288d152db155e72ccc6dd1be17882123923cb (diff) | |
download | cwm-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.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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; +} |