summaryrefslogtreecommitdiff
blob: 7cd3d96cdc9eadde253171980054538b4acd7e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- pinentry/gtk+-2/pinentry-gtk-2.c
+++ pinentry/gtk+-2/pinentry-gtk-2.c
@@ -261,10 +261,10 @@ create_window (int confirm_mode)
   if (!confirm_mode)
     {
       g_signal_connect (G_OBJECT (win),
-			pinentry->grab ? "map-event" : "focus-in-event",
+			"focus-in-event",
 			G_CALLBACK (grab_keyboard), NULL);
       g_signal_connect (G_OBJECT (win),
-			pinentry->grab ? "unmap-event" : "focus-out-event",
+			"focus-out-event",
 			G_CALLBACK (ungrab_keyboard), NULL);
     }
   gtk_window_add_accel_group (GTK_WINDOW (win), acc);