diff -Nru policykit-1-gnome-0.105/debian/changelog policykit-1-gnome-0.105/debian/changelog --- policykit-1-gnome-0.105/debian/changelog 2012-02-11 05:10:02.000000000 +0000 +++ policykit-1-gnome-0.105/debian/changelog 2012-08-08 13:31:05.000000000 +0000 @@ -1,3 +1,11 @@ +policykit-1-gnome (0.105-1ubuntu4) quantal; urgency=low + + * debian/patches/08-fresh-x11-timestamps.patch: use fresh X11 timestamps + when displaying authentication dialog to circumvent focus-stealing + prevention. (LP: #946171) + + -- Jeffrey Knockel Fri, 27 Jul 2012 00:41:43 -0600 + policykit-1-gnome (0.105-1ubuntu3) precise; urgency=low * debian/patches/07-use-accountsservice.patch: get user icon from diff -Nru policykit-1-gnome-0.105/debian/patches/08-fresh-x11-timestamps.patch policykit-1-gnome-0.105/debian/patches/08-fresh-x11-timestamps.patch --- policykit-1-gnome-0.105/debian/patches/08-fresh-x11-timestamps.patch 1970-01-01 00:00:00.000000000 +0000 +++ policykit-1-gnome-0.105/debian/patches/08-fresh-x11-timestamps.patch 2012-08-08 13:32:56.000000000 +0000 @@ -0,0 +1,28 @@ +Description: use fresh X11 timestamps when displaying authentication dialog + to circumvent focus-stealing prevention. +Author: Jeffrey Knockel +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/policykit-gnome/+bug/946171 +Bug: https://bugzilla.gnome.org/show_bug.cgi?id=676076 + +Index: policykit-1-gnome-0.105/src/polkitgnomeauthenticator.c +=================================================================== +--- policykit-1-gnome-0.105.orig/src/polkitgnomeauthenticator.c 2012-07-27 00:39:09.000000000 -0600 ++++ policykit-1-gnome-0.105/src/polkitgnomeauthenticator.c 2012-07-27 00:40:27.185547436 -0600 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #include + #include +@@ -307,7 +308,8 @@ + } + + gtk_widget_show_all (GTK_WIDGET (authenticator->dialog)); +- gtk_window_present (GTK_WINDOW (authenticator->dialog)); ++ gtk_window_present_with_time (GTK_WINDOW (authenticator->dialog), ++ gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (authenticator->dialog)))); + password = polkit_gnome_authentication_dialog_run_until_response_for_prompt (POLKIT_GNOME_AUTHENTICATION_DIALOG (authenticator->dialog), + modified_request, + echo_on, diff -Nru policykit-1-gnome-0.105/debian/patches/series policykit-1-gnome-0.105/debian/patches/series --- policykit-1-gnome-0.105/debian/patches/series 2012-02-11 04:21:49.000000000 +0000 +++ policykit-1-gnome-0.105/debian/patches/series 2012-08-08 13:31:05.000000000 +0000 @@ -4,3 +4,4 @@ 04-autorestart.patch 06-authentication-failure-string.patch 07-use-accountsservice.patch +08-fresh-x11-timestamps.patch