[Bug 59244] gnome-session logout hang with a composite manager

gandalfn gandalfn at club-internet.fr
Wed Sep 6 20:17:40 UTC 2006


Public bug reported:

Binary package hint: gnome-session

gnome-session logout hang with a composite manager, that is due of justified use of XServerGrab on logout. 
The composite manager also using this function for the screen refresh, Grab of gnome-session thus blocks screen refresh and the logout window does not appear while being open. 
Here small a patch which inactivate Grab/Ungrab on logout when GSM_NO_GRAB_SERVER is defined in .gnomerc. 

--- gnome-session.orig/gnome-session/logout.c	2005-04-26 12:56:50.000000000 +0200
+++ gnome-session/gnome-session/logout.c	2006-03-13 20:10:35.000000000 +0100
@@ -491,7 +492,8 @@
    */
   if (!a11y_enabled)
     {
-      XGrabServer (GDK_DISPLAY ());
+      if (!g_getenv("GSM_NO_GRAB_SERVER"))
+      	XGrabServer (GDK_DISPLAY ());
       gsm_foreach_screen (fadeout_screen);
     }
 
@@ -533,7 +535,8 @@
   if (!a11y_enabled)
     {
       hide_fadeout_windows ();
-      XUngrabServer (GDK_DISPLAY ());
+      if (!g_getenv("GSM_NO_GRAB_SERVER"))
+        XUngrabServer (GDK_DISPLAY ());
 
       gdk_pointer_ungrab (GDK_CURRENT_TIME);
       gdk_keyboard_ungrab (GDK_CURRENT_TIME);

** Affects: gnome-session (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
gnome-session logout hang with a composite manager
https://launchpad.net/bugs/59244




More information about the desktop-bugs mailing list