summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-04-12 16:45:42 +0000
committersabetts <sabetts>2001-04-12 16:45:42 +0000
commit856546029dc60070dbc3e05b6621247d1bae7b28 (patch)
tree2be6cc3ccbd3ab6ac0eaf47f1c32ec8382ef473b
parent4e17390073590b1d8f6c0b293eaec8ede8d253fb (diff)
downloadratpoison-856546029dc60070dbc3e05b6621247d1bae7b28.zip
* src/main.c (main): calls XCloseDisplay before exitting after
sending a kill, restart, or command message.
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 7a8c19a..a41973b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -390,21 +390,21 @@ main (int argc, char *argv[])
{
send_kill ();
XSync (dpy, False);
- clean_up ();
+ XCloseDisplay (dpy);
return EXIT_SUCCESS;
}
if (do_restart)
{
send_restart ();
XSync (dpy, False);
- clean_up ();
+ XCloseDisplay (dpy);
return EXIT_SUCCESS;
}
if (do_command)
{
send_command (command);
free (command);
- clean_up();
+ XCloseDisplay (dpy);
return EXIT_SUCCESS;
}