]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
use the plugins' plugin_setup_config function
[chaz/openbox] / openbox / client.c
index c35c62db8cd993a177d0af391858aed49fa95c4b..556430ec53594ce1d863bf12be441937b23570e1 100644 (file)
@@ -228,6 +228,7 @@ void client_unmanage(Client *client)
     g_message("Unmanaging window: %lx", client->window);
 
     dispatch_client(Event_Client_Destroy, client, 0, 0);
+    g_assert(client != NULL);
 
     /* remove the window from our save set */
     XChangeSaveSet(ob_display, client->window, SetModeDelete);
@@ -239,6 +240,7 @@ void client_unmanage(Client *client)
 
     /* dispatch the unmapped event */
     dispatch_client(Event_Client_Unmapped, client, 0, 0);
+    g_assert(client != NULL);
 
     /* give the client its border back */
     client_toggle_border(client, TRUE);
@@ -1652,6 +1654,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;
This page took 0.021799 seconds and 4 git commands to generate.