tKill clients on middle click - glazier - window management experiments
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7f89b8ceb20ad5ee8385c4b6fde0992029e3eef7
 (DIR) parent ce9d2f09c1234c8f0dd06b789ab8fe572a52b45b
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue, 22 Oct 2019 20:37:38 +0200
       
       Kill clients on middle click
       
       Diffstat:
         M glazier.c                           |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/glazier.c b/glazier.c
       t@@ -250,6 +250,9 @@ cb_mouse_press(xcb_generic_event_t *ev)
                        curwid = e->event;
                        p = xcb_cursor_load_cursor(cx, XHAIR_MOVE);
                        break;
       +        case 2:
       +                xcb_kill_client(conn, get_child(e->event));
       +                break;
                case 3:
                        curwid = e->event;
                        p = xcb_cursor_load_cursor(cx, XHAIR_SIZE);