tags 401957 + patch
thanks

Dear maintainer,

I've prepared an NMU for pinentry (versioned as 0.7.5-2.1) and uploaded it
to DELAYED/2.

Regards.
diff -u pinentry-0.7.5/debian/changelog pinentry-0.7.5/debian/changelog
--- pinentry-0.7.5/debian/changelog
+++ pinentry-0.7.5/debian/changelog
@@ -1,3 +1,11 @@
+pinentry (0.7.5-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * gtk+-2/pinentry-gtk-2.c: apply patch to avoid keyboard grab race on SMP
+    systems (closes: #401957).
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]>  Mon, 20 Oct 2008 15:11:18 +0200
+
 pinentry (0.7.5-2) unstable; urgency=high
 
   * gtk+-2/gtksecentry.c: Adjusted the g_*malloc*() overrides to have the same
only in patch2:
unchanged:
--- pinentry-0.7.5.orig/gtk+-2/pinentry-gtk-2.c
+++ pinentry-0.7.5/gtk+-2/pinentry-gtk-2.c
@@ -260,8 +260,11 @@
                    G_CALLBACK (constrain_size), NULL);
   if (!confirm_mode)
     {
+        //we need to grab the keyboard when its visible! not when its mapped 
(there is a difference)
+        g_object_set(G_OBJECT(win), "events", GDK_VISIBILITY_NOTIFY_MASK | 
GDK_STRUCTURE_MASK, NULL);
+
       g_signal_connect (G_OBJECT (win),
-                       pinentry->grab ? "map-event" : "focus-in-event",
+                       pinentry->grab ? "visibility-notify-event" : 
"focus-in-event",
                        G_CALLBACK (grab_keyboard), NULL);
       g_signal_connect (G_OBJECT (win),
                        pinentry->grab ? "unmap-event" : "focus-out-event",



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to