summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-22 13:26:28 +0000
committerDana Jansens <danakj@orodu.net>2003-03-22 13:26:28 +0000
commitff06051eb797cf5c026b3ea125d964103df3c3c8 (patch)
treef33be921a3ffefd462ac3599445ad7743f35dedc /openbox
parenta5b371cfe73084236223ae8f3755d1a286f780ea (diff)
asserts in unmanage to try track a crash
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c
index bb3b3767..556430ec 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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);