]> Dogcows Code - chaz/openbox/commitdiff
add the client_kill function, and the kill action, and bind it to the middle mouse...
authorDana Jansens <danakj@orodu.net>
Sat, 22 Mar 2003 06:58:38 +0000 (06:58 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 22 Mar 2003 06:58:38 +0000 (06:58 +0000)
openbox/action.c
openbox/action.h
openbox/client.c
openbox/client.h
plugins/mouse/mouse.c

index 6a86cf33f6f938506554fa17ff833fa54da3d2d5..3e463d668732643037b45ff89aa131e3ecd4e4a5 100644 (file)
@@ -73,6 +73,11 @@ void action_close(union ActionData *data)
     client_close(data->client.c);
 }
 
+void action_kill(union ActionData *data)
+{
+    client_kill(data->client.c);
+}
+
 void action_shade(union ActionData *data)
 {
     client_shade(data->client.c, TRUE);
index c8e004873bf50d26f37c6d9c50373feb826efcc9..cf6f633e18fa6cce1b83df9caf430c30410a75ef 100644 (file)
@@ -104,6 +104,8 @@ void action_focusraise(union ActionData *data);
 /* ClientAction */
 void action_close(union ActionData *data);
 /* ClientAction */
+void action_kill(union ActionData *data);
+/* ClientAction */
 void action_shade(union ActionData *data);
 /* ClientAction */
 void action_unshade(union ActionData *data);
index c35c62db8cd993a177d0af391858aed49fa95c4b..bb3b37674cc2883ead5218c883b8c11ed07165e1 100644 (file)
@@ -1652,6 +1652,11 @@ void client_close(Client *self)
     XSendEvent(ob_display, self->window, FALSE, NoEventMask, &ce);
 }
 
+void client_kill(Client *self)
+{
+    XKillClient(ob_display, self->window);
+}
+
 void client_set_desktop(Client *self, guint target)
 {
     guint old, i;
index 34a61c96d10b087ef7e01d76be5bdc8f28c18088..808f4e5f8a6f2aee151483bce96400d0ba2370a7 100644 (file)
@@ -380,9 +380,12 @@ void client_maximize(Client *self, gboolean max, int dir,
 */
 void client_shade(Client *self, gboolean shade);
 
-/*! Request the client to close its window. */
+/*! Request the client to close its window */
 void client_close(Client *self);
 
+/*! Kill the client off violently */
+void client_kill(Client *self);
+
 /*! Sends the window to the specified desktop */
 void client_set_desktop(Client *self, guint target);
 
index b332099abfa637b3a218f05dc8d7d18edd2e5591..ea943f5a2820ac1a838efc4bf5a104ea4a82f660 100644 (file)
@@ -407,6 +407,8 @@ static void binddef()
     mbind("1", "icon", MouseAction_DClick, a);
     a = action_new(action_close);
     mbind("1", "close", MouseAction_Click, a);
+    a = action_new(action_kill);
+    mbind("2", "close", MouseAction_Click, a);
     a = action_new(action_toggle_omnipresent);
     mbind("1", "alldesktops", MouseAction_Click, a);
 
This page took 0.033325 seconds and 4 git commands to generate.