From c1772473604c9a5ab8df71a34738544356186ec3 Mon Sep 17 00:00:00 2001 From: "Torrance, Douglas" Date: Sat, 8 Dec 2018 15:03:46 +0000 Subject: [PATCH] wmshutdown: Destroy dialog window before shutting down. This is especially useful for suspending or hibernating. After turning the computer back on, the wmshutdown dialog would still be open from before, and clicking on the dockapp would n... --- wmshutdown/wmshutdown.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wmshutdown/wmshutdown.c b/wmshutdown/wmshutdown.c index 9d7a6aa..df0a83e 100644 --- a/wmshutdown/wmshutdown.c +++ b/wmshutdown/wmshutdown.c @@ -116,6 +116,8 @@ void handle_click(GtkWidget *widget, gpointer data) gchar *method = (gchar *)data; + fecha(); + connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error); message = g_dbus_message_new_method_call( NULL,