Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 72682f97789893cb05925a6c35ec9c08 > files > 5

gnome-panel-2.18.0-5mdv2007.1.src.rpm

--- gnome-panel-2.18.0/gnome-panel/panel-gdm.c.fixflexiserverlock	2007-03-12 19:48:43.000000000 +0100
+++ gnome-panel-2.18.0/gnome-panel/panel-gdm.c	2007-03-20 18:49:00.000000000 +0100
@@ -30,6 +30,7 @@
 #include <config.h>
 
 #include "panel-gdm.h"
+#include "panel-util.h"
 
 #include <string.h>
 #include <errno.h>
@@ -405,6 +406,10 @@
         response = gdm_send_protocol_msg (&gdm_protocol_data,
 					  GDM_PROTOCOL_MSG_FLEXI_XSERVER);
 
+        if (response && strncmp (response, "OK ", 3) == 0) {
+		panel_lock_screen (gdk_screen_get_default());
+	}
+
         g_free (response);
 
 	gdm_protocol_data.last_update = 0;