[arch-commits] Commit in polkit-gnome/trunk (2 files)

Balló György bgyorgy at archlinux.org
Sat May 1 17:56:24 UTC 2021


    Date: Saturday, May 1, 2021 @ 17:56:23
  Author: bgyorgy
Revision: 926008

upgpkg: polkit-gnome 0.105-8: Trying to find a proper fix (FS#70670)

Modified:
  polkit-gnome/trunk/0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch
  polkit-gnome/trunk/PKGBUILD

-----------------------------------------------------------------+
 0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch |   23 +++++++++-
 PKGBUILD                                                        |    4 -
 2 files changed, 23 insertions(+), 4 deletions(-)

Modified: 0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch
===================================================================
--- 0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch	2021-05-01 17:29:12 UTC (rev 926007)
+++ 0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch	2021-05-01 17:56:23 UTC (rev 926008)
@@ -15,12 +15,31 @@
 index 23163b4..e57d76e 100644
 --- a/src/polkitgnomeauthenticator.c
 +++ b/src/polkitgnomeauthenticator.c
-@@ -306,7 +307,7 @@ session_request (PolkitAgentSession *session,
+@@ -26,6 +26,7 @@
+ #include <sys/types.h>
+ #include <pwd.h>
+ #include <glib/gi18n.h>
++#include <gdk/gdkx.h>
+ 
+ #include <polkit/polkit.h>
+ #include <polkitagent/polkitagent.h>
+@@ -306,7 +307,17 @@ session_request (PolkitAgentSession *session,
      }
  
    gtk_widget_show_all (GTK_WIDGET (authenticator->dialog));
 -  gtk_window_present (GTK_WINDOW (authenticator->dialog));
-+  gtk_window_present_with_time (GTK_WINDOW (authenticator->dialog), gtk_get_current_event_time ());
++  GdkWindow *window = gtk_widget_get_window (GTK_WIDGET (authenticator->dialog));
++
++  if (GDK_IS_X11_WINDOW (window))
++    {
++    gtk_window_present_with_time (GTK_WINDOW (authenticator->dialog), gdk_x11_get_server_time (window));
++    }
++  else
++    {
++    gtk_window_present (GTK_WINDOW (authenticator->dialog));
++    }
++
    password = polkit_gnome_authentication_dialog_run_until_response_for_prompt (POLKIT_GNOME_AUTHENTICATION_DIALOG (authenticator->dialog),
                                                                                 modified_request,
                                                                                 echo_on,
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-01 17:29:12 UTC (rev 926007)
+++ PKGBUILD	2021-05-01 17:56:23 UTC (rev 926008)
@@ -4,7 +4,7 @@
 
 pkgname=polkit-gnome
 pkgver=0.105
-pkgrel=7
+pkgrel=8
 pkgdesc='Legacy polkit authentication agent for GNOME'
 arch=('x86_64')
 url='https://gitlab.gnome.org/Archive/policykit-gnome'
@@ -22,7 +22,7 @@
             'b989f1c7e30f2f9f9ef03f1a06db708d83c4945ee242ca573e7d66b64bf7037f'
             '41afbd11bdf4633dc619675862078c23e4b200c888da1569d030c502999b25d8'
             '4ee38d2dae6e592040c41ba07caa284135dc232feef5a30acb42c0e28340adce'
-            '9760750a6a6187c6440c3f8d8f9066f55f9e4923020c5d84697ee44bb682e990')
+            '8d278f773f1815cf6d384518749643404fed444bb764305ebba081965152fa9e')
 
 prepare() {
   cd $pkgname-$pkgver



More information about the arch-commits mailing list