components/desktop/xscreensaver/patches/0014-bug-15412661.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 08 Mar 2016 09:00:31 -0800
changeset 5561 0416d82f7f55
parent 5400 components/desktop/xscreensaver/patches/16-bug-15412661.patch@1199f8e91f50
permissions -rw-r--r--
22593000 Upgrade xscreensaver to version 5.34 22557069 problem in GNOME/SCREENSAVER

From 57558315b40a1159a14aa05b6420d6b601e3318b Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <[email protected]>
Date: Sat, 2 Jan 2016 22:55:58 -0800
Subject: [PATCH] bug 15412661

15412661 SUNBT6585644 xscreensaver can cause KeyPress event loop between
	 	      itself and xscreensaver-lock.

Upstream status unknown - suspect to be specific to our GTK unlock dialog.
---
 driver/timers.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/driver/timers.c b/driver/timers.c
index 32728a0..825c2d9 100644
--- a/driver/timers.c
+++ b/driver/timers.c
@@ -131,6 +131,13 @@ notice_events (saver_info *si, Window window, Bool top_p)
   unsigned int nkids;
   int screen_no;
 
+  if ((si->pw_data->got_windowid) && (window == si->passwd_dialog))
+    {
+      if (p->verbose_p)
+	fprintf (stderr, "--> notice_events() breaking out of loop!\n");
+      return;
+    }
+
   if (XtWindowToWidget (si->dpy, window))
     /* If it's one of ours, don't mess up its event mask. */
     return;
-- 
2.6.1