[PATCH] Fix inhibited suspend prompt dialog

gavinli at thegavinli.com gavinli at thegavinli.com
Wed Jul 19 20:08:34 CEST 2017


From: Gavin Li <git at thegavinli.com>

Clicking "Yes" in the inhibit suspend prompt dialog currently does nothing
and suspend continues anyways. This patch fixes that problem.

---
 src/xfpm-power.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index 172cff8..ed5b184 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -391,7 +391,7 @@ xfpm_power_sleep (XfpmPower *power, const gchar *sleep_time, gboolean force)
 	gtk_widget_destroy (dialog);
 
 
-	if ( !ret )
+	if ( ret != GTK_RESPONSE_YES )
 	    return;
     }
 
-- 
2.13.2



More information about the Xfce4-dev mailing list