From e4577e0b316eacacb522ee3a5bdd25fff27dae74 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 17 Oct 2017 17:14:21 +0300 Subject: don't lose focus when displaying logout or shutdown dialog same as done in: https://github.com/mate-desktop/mate-polkit/commit/ed37b52fbfbce5d57d0549fac1a9dca2502f3372 fixes https://github.com/mate-desktop/mate-session-manager/issues/123 fixes https://github.com/mate-desktop/mate-session-manager/issues/140 --- mate-session/gsm-manager.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c index 2e8273a..f76c235 100644 --- a/mate-session/gsm-manager.c +++ b/mate-session/gsm-manager.c @@ -40,6 +40,7 @@ #include /* for logout dialog */ #include /* for gsettings */ +#include #include "gsm-manager.h" #include "gsm-manager-glue.h" @@ -3185,6 +3186,8 @@ show_shutdown_dialog (GsmManager *manager) G_CALLBACK (logout_dialog_response), manager); gtk_widget_show (dialog); + gtk_window_present_with_time (GTK_WINDOW (dialog), + gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (dialog)))); } static void @@ -3207,6 +3210,8 @@ show_logout_dialog (GsmManager *manager) G_CALLBACK (logout_dialog_response), manager); gtk_widget_show (dialog); + gtk_window_present_with_time (GTK_WINDOW (dialog), + gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (dialog)))); } static void -- cgit v1.2.1