<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/xkb/xkbActions.c, branch update-workflows</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=update-workflows</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=update-workflows'/>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/'/>
<updated>2020-01-09T23:25:46+00:00</updated>
<entry>
<title>_XkbFilterDeviceBtn: move variable declarations to match usage scope</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T21:50:13+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=1a1ace774f49bccbb4760b4a0c58e56bf46548db'/>
<id>urn:sha1:1a1ace774f49bccbb4760b4a0c58e56bf46548db</id>
<content type='text'>
Fix this warning:

xkbActions.c: In function ‘_XkbFilterDeviceBtn’:
xkbActions.c:1084:6: warning: declaration of ‘button’ shadows a previous local [-Wshadow=compatible-local]
  int button;
      ^~~~~~
xkbActions.c:1044:6: note: shadowed declaration is here
 int  button;
      ^~~~~~

Backport of this xorg-xserver upstream commit:

  commit 41dd7cf673e47ab74c5065b8dbf268b2e5facb64
  Author: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
  Date:   Mon Dec 12 16:49:34 2011 -0800

    _XkbFilterDeviceBtn: move variable declarations to match usage scope

    The main body of this function is an if { } else if { } pair of blocks.
    Previously there was int button at the top level scope which is used
    only in the first block, and a redeclaration of int button inside the
    second block.   Since there's no overlap in the code paths for the
    two uses of button, move the one from the outer block into the first
    block to help the programmer more quickly determine they are unrelated
    usages, and to silence the gcc warning of:

    xkbActions.c: In function '_XkbFilterDeviceBtn':
    xkbActions.c:999:6: warning: declaration of 'button' shadows a previous local
    xkbActions.c:955:6: warning: shadowed declaration is here

    For consistency, move DeviceIntPtr dev declarations as well that are
    used in the same way.

    Signed-off-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
    Reviewed-by: Jamey Sharp &lt;jamey@minilop.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>xkbActions.c: fix formatting</title>
<updated>2020-01-05T23:18:44+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-12-03T17:59:11+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=3d77840c17196bc215302461d0433109c3327378'/>
<id>urn:sha1:3d77840c17196bc215302461d0433109c3327378</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rework xkb device private handling</title>
<updated>2019-06-22T14:05:48+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-22T14:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=3aabc92cf81f20b89dc49e8db3c56ad9fa08481b'/>
<id>urn:sha1:3aabc92cf81f20b89dc49e8db3c56ad9fa08481b</id>
<content type='text'>
We can only free the xkbDevicePrivate because we do not know the
details of any other (possible) extension. So let's limit to that one
private for now and call the new xkbFreePrivates from dix (where such
a function is completely missing).
</content>
</entry>
<entry>
<title>xkb: remove oldState from XkbHandleActions.</title>
<updated>2019-06-22T09:30:54+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-21T08:10:21+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=56dcc8a4b6a9ed3b7f55e0eeaeff9bc14737cdd5'/>
<id>urn:sha1:56dcc8a4b6a9ed3b7f55e0eeaeff9bc14737cdd5</id>
<content type='text'>
Fixes this cppcheck finding:
[nx-X11/programs/Xserver/xkb/xkbActions.c:1306]: (error) Uninitialized variable: oldState

  commit 35a4b8e7f4526a92d44cb16a783f21030cd1f6df
  Author: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
  Date:   Tue May 5 16:51:59 2009 +1000

    xkb: remove oldState from XkbHandleActions.

    I really don't know what the purpose of this variable is or was, aside from
    potentially clobbering up our key state since there's a path where it may be
    used uninitialised.

    Also, this means that xkbi-&gt;prev_state is now accessible from the DIX with
    meaningful data.

    Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
</entry>
<entry>
<title>Lift xkb to XORG-1.2.0 state</title>
<updated>2018-11-09T14:31:57+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2018-06-29T20:34:32+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=9808c66ec37d5d99f58bdb6136ae96381cb9cfc8'/>
<id>urn:sha1:9808c66ec37d5d99f58bdb6136ae96381cb9cfc8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removal of dead code in Xserver/xkb. Follow-up commit for 3739a9b.</title>
<updated>2018-07-03T14:29:17+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-02-16T20:18:42+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=e734ca2175ffeafcce0e1435d304880cebe7561c'/>
<id>urn:sha1:e734ca2175ffeafcce0e1435d304880cebe7561c</id>
<content type='text'>
 Spotted in and backported from X.org:

 commit 021fc5cb2cb4a7972b4a6fcb570c1da92787d68d
 Author: Adam Jackson &lt;ajax@benzedrine.nwnk.net&gt;
 Date:   Sun Mar 18 16:31:19 2007 -0400

    Static markup and dead code cull over xkb/.

    The former &lt;X11/extensions/XKBsrv.h&gt; has been pulled into the server now as
    include/xkbsrv.h, and the world updated to look for it in the new place,
    since it made no sense to define server API in an extension header.  Any
    further work along this line will need to do similar things with XKBgeom.h
    and friends.

 Backported-to-NX-by: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
</content>
</entry>
<entry>
<title>xserver: use own copy of XKBsrv.h header</title>
<updated>2016-10-06T19:16:16+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2016-09-26T18:43:23+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=3739a9b3033ccaf139a296f8647f7c6cddc9db75'/>
<id>urn:sha1:3739a9b3033ccaf139a296f8647f7c6cddc9db75</id>
<content type='text'>
just like upstream does
</content>
</entry>
<entry>
<title>VCS info lines: Remove ancient X.org / XFree86 VCS info line from code files.</title>
<updated>2016-07-05T23:09:15+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-07-05T14:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=6144b615dd7ae2acd786aaa08f66c9743870b709'/>
<id>urn:sha1:6144b615dd7ae2acd786aaa08f66c9743870b709</id>
<content type='text'>
 This has already been started while replacing copyright info in file
 headers and has now been completed with this commit.
</content>
</entry>
<entry>
<title>remove unreferenced NEED_EVENTS/NEED_REPLIES</title>
<updated>2016-07-05T20:55:07+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2016-07-04T19:11:21+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=fa651994740d4381d8a8ab72e2ac3ef38fba3dde'/>
<id>urn:sha1:fa651994740d4381d8a8ab72e2ac3ef38fba3dde</id>
<content type='text'>
Remove defines of NEED_EVENTS and NEED_REPLIES because they are never
used anywhere.

Basically these three commits, but as they are newer and to not match
the code structure the patches have not been applied but replaced by
sed + manual intervention:

   From cb95642dc8edebb2935dd471f8b339cb98aa8481 Mon Sep 17 00:00:00 2001
   From: Peter Hutterer &lt;peter.hutterer@redhat.com&gt;
   Date: Fri, 28 Nov 2008 22:28:32 +1000
   Subject: Remove #define NEED_EVENTS and NEED_REPLIES

   A grep on xorg/* revealed there's no consumer of this define.

   Quote Alan Coopersmith:
   "The consumer was in past versions of the headers now located
   in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h,
   all the event definitions were only available if NEED_EVENTS were
   defined, and all the reply definitions required NEED_REPLIES.

   Looks like Xproto.h dropped them by X11R6.3, which didn't have
   the #ifdef's anymore, so these are truly ancient now."

   Signed-off-by: Peter Hutterer &lt;peter.hutterer@redhat.com&gt;
   Signed-off-by: Adam Jackson &lt;ajax@redhat.com&gt;

--

   From 6de368c9aa7ccd2fcd62fca5a2b278913db4d03d Mon Sep 17 00:00:00 2001
   From: Fernando Carrijo &lt;fcarrijo@yahoo.com.br&gt;
   Date: Thu, 1 Jul 2010 06:50:47 -0300
   Subject: Purge macros NEED_EVENTS and NEED_REPLIES

   Signed-off-by: Fernando Carrijo &lt;fcarrijo@yahoo.com.br&gt;
   Acked-by: Tiago Vignatti &lt;tiago.vignatti@nokia.com&gt;
   Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;

--

   From 57c03e52e6b4e3ed54df5fdd778865467d08e119 Mon Sep 17 00:00:00 2001
   From: Fernando Carrijo &lt;fcarrijo@yahoo.com.br&gt;
   Date: Thu, 1 Jul 2010 06:59:48 -0300
   Subject: Purge macro NEED_EVENTS

   Signed-off-by: Fernando Carrijo &lt;fcarrijo@yahoo.com.br&gt;
   Acked-by: Tiago Vignatti &lt;tiago.vignatti@nokia.com&gt;
   Reviewed-by: Alan Coopersmith &lt;alan.coopersmith@oracle.com&gt;
</content>
</entry>
<entry>
<title>nx-X11/programs/Xserver: Drop {X,x}alloc() macros, use malloc() instead.</title>
<updated>2016-07-02T12:05:30+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-06-25T23:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=2646fc254e75c4a7fc10d03d1139d0bd708ceae9'/>
<id>urn:sha1:2646fc254e75c4a7fc10d03d1139d0bd708ceae9</id>
<content type='text'>
</content>
</entry>
</feed>
