Hello community,

here is the log from the commit of package libXScrnSaver for openSUSE:Factory 
checked in at 2017-11-30 12:33:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libXScrnSaver (Old)
 and      /work/SRC/openSUSE:Factory/.libXScrnSaver.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libXScrnSaver"

Thu Nov 30 12:33:22 2017 rev:9 rq:544430 version:1.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libXScrnSaver/libXScrnSaver.changes      
2016-05-23 17:29:39.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libXScrnSaver.new/libXScrnSaver.changes 
2017-11-30 12:33:24.228070773 +0100
@@ -1,0 +2,6 @@
+Wed Nov 22 09:54:36 UTC 2017 - zai...@opensuse.org
+
+- Add U_libXScrnSaver_copy_root_field.patch: Copy root field from
+  wire event into root, not window, of Xlib event.
+
+-------------------------------------------------------------------

New:
----
  U_libXScrnSaver_copy_root_field.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libXScrnSaver.spec ++++++
--- /var/tmp/diff_new_pack.AWWJf4/_old  2017-11-30 12:33:25.764014921 +0100
+++ /var/tmp/diff_new_pack.AWWJf4/_new  2017-11-30 12:33:25.764014921 +0100
@@ -29,6 +29,7 @@
 #Git-Web:      http://cgit.freedesktop.org/xorg/lib/libXScrnSaver/
 Source:         
http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
 Source1:        baselibs.conf
+Patch:          U_libXScrnSaver_copy_root_field.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 #git#BuildRequires:    autoconf >= 2.60, automake, libtool
 BuildRequires:  fdupes
@@ -76,6 +77,7 @@
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 %configure --disable-static

++++++ U_libXScrnSaver_copy_root_field.patch ++++++
>From 74406e5ea3378a9b633ad0776a4bb34347cf1911 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersm...@oracle.com>
Date: Sat, 7 Dec 2013 19:45:45 -0800
Subject: Copy root field from wire event into root, not window, of Xlib event

Fixes cppcheck warning:
[src/XScrnSaver.c:104] -> [src/XScrnSaver.c:105]: (performance, inconclusive)
 Variable 'window' is reassigned a value before the old one has been
 used if variable is no semaphore variable.

Error seems to date back to revision 1.1 in X Consortium RCS,
dated 1992-02-13, by "keith"

Signed-off-by: Alan Coopersmith <alan.coopersm...@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutte...@who-t.net>

diff --git a/src/XScrnSaver.c b/src/XScrnSaver.c
index 2a89246..3947dd5 100644
--- a/src/XScrnSaver.c
+++ b/src/XScrnSaver.c
@@ -102,7 +102,7 @@ static Bool wire_to_event (
        se->send_event = (sevent->type & 0x80) != 0;
        se->display = dpy;
        se->window = sevent->window;
-       se->window = sevent->root;
+       se->root = sevent->root;
        se->state = sevent->state;
        se->kind = sevent->kind;
        se->forced = True;
-- 
cgit v0.10.2

Reply via email to