patches/xscreensaver-20-notice_events.diff
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 18061 1ad14cf3c086
permissions -rw-r--r--
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18061
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     1
/*
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     2
 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     3
 *
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     4
 * Permission is hereby granted, free of charge, to any person obtaining a
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     5
 * copy of this software and associated documentation files (the "Software"),
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     6
 * to deal in the Software without restriction, including without limitation
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     7
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     8
 * and/or sell copies of the Software, and to permit persons to whom the
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
     9
 * Software is furnished to do so, subject to the following conditions:
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    10
 *
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    11
 * The above copyright notice and this permission notice (including the next
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    12
 * paragraph) shall be included in all copies or substantial portions of the
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    13
 * Software.
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    14
 *
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    15
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    16
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    17
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    18
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    19
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    20
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    21
 * DEALINGS IN THE SOFTWARE.
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    22
 */
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    23
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    24
Fix for: 6585644 xscreensaver can cause KeyPress event loop between itself and xscreensaver-lock.
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    25
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    26
diff --git xscreensaver-5.11/driver/timers.c xscreensaver-5.11/driver/timers.c
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    27
--- xscreensaver-5.11/driver/timers.c
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    28
+++ xscreensaver-5.11/driver/timers.c
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    29
@@ -137,6 +137,13 @@ notice_events (saver_info *si, Window window, Bool top_p)
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    30
   unsigned int nkids;
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    31
   int screen_no;
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    32
 
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    33
+  if ((si->pw_data->got_windowid) && (window == si->passwd_dialog))
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    34
+    {
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    35
+      if (p->verbose_p)
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    36
+	fprintf (stderr, "--> notice_events() breaking out of loop!\n");
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    37
+      return;
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    38
+    }
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    39
+
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    40
   if (XtWindowToWidget (si->dpy, window))
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    41
     /* If it's one of ours, don't mess up its event mask. */
1ad14cf3c086 2010-06-01 Alan Coopersmith <[email protected]>
alanc
parents:
diff changeset
    42
     return;