<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/mi, branch pr/various9</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://cgit.arctica-project.org/nx-libs/atom?h=pr%2Fvarious9</id>
<link rel='self' href='https://cgit.arctica-project.org/nx-libs/atom?h=pr%2Fvarious9'/>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/'/>
<updated>2023-04-27T12:13:31+00:00</updated>
<entry>
<title>Imakefiles: delete trailing whitespace</title>
<updated>2023-04-27T12:13:31+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2021-11-18T22:30:10+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=03c40f15c45dc100e958d3a4798a9bf83ce0df34'/>
<id>urn:sha1:03c40f15c45dc100e958d3a4798a9bf83ce0df34</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mi: define NXAGENT_SERVER</title>
<updated>2020-05-30T19:15:22+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-05-27T18:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=6f22fb9ee4232473793c8c1f1fce5ab27269b715'/>
<id>urn:sha1:6f22fb9ee4232473793c8c1f1fce5ab27269b715</id>
<content type='text'>
In commit f48e2da3e86b2d7600de3d5d4ef6f81ba2c17bed I marked NX changes
by using #ifdef NXAGENT_SERVER. But I had missed that this define was
never set in mi. So let's change that now and make it work like
before.

Fixes ArcticaProject/nx-libs#926
</content>
</entry>
<entry>
<title>mi: fix shadow warnings</title>
<updated>2020-01-09T23:25:46+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2020-01-09T22:06:08+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=4b8194e1eafb9fd788b814921f9e2518a2079344'/>
<id>urn:sha1:4b8194e1eafb9fd788b814921f9e2518a2079344</id>
<content type='text'>
Based on the following commit. But for mispans.c I think the first
contained fix is wrong (nested loop with variable i) so I took another
approach.

  commit f02e27e4fcc34413b2051e5a01edc92172fa8612
  Author: Yaakov Selkowitz &lt;yselkowitz@users.sourceforge.net&gt;
  Date:   Tue Oct 16 02:16:17 2012 -0500

    mi: fix shadow warnings

    mibitblt.c: In function 'miGetImage':
    mibitblt.c:617:20: warning: declaration of 'pt' shadows a previous local
    mibitblt.c:609:17: warning: shadowed declaration is here
    mispans.c: In function 'miFillUniqueSpanGroup':
    mispans.c:456:33: warning: declaration of 'i' shadows a previous local
    mispans.c:382:9: warning: shadowed declaration is here
    mispans.c:488:17: warning: declaration of 'i' shadows a previous local
    mispans.c:382:9: warning: shadowed declaration is here

    Signed-off-by: Yaakov Selkowitz &lt;yselkowitz@users.sourceforge.net&gt;
    Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;

Fixes these warnings:

mi/mispans.c: fix shadowed vars

mispans.c: In function ‘miFillUniqueSpanGroup’:
mispans.c:465:12: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
        int i;
            ^
mispans.c:387:21: note: shadowed declaration is here
     register int    i;
                     ^
mispans.c:497:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local]
      int i;
          ^
mispans.c:387:21: note: shadowed declaration is here
     register int    i;
                     ^

mibitblt.c: In function ‘miGetImage’:
mibitblt.c:669:13: warning: declaration of ‘pt’ shadows a previous local [-Wshadow=compatible-local]
      xPoint pt;
             ^~
mibitblt.c:659:18: note: shadowed declaration is here
     DDXPointRec  pt = {0, 0};
                  ^~
</content>
</entry>
<entry>
<title>nxagent: remove another xprint renmant</title>
<updated>2020-01-05T23:50:30+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-12-28T23:48:43+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=12358d64a44889eef243eb316ca1ac962cca5422'/>
<id>urn:sha1:12358d64a44889eef243eb316ca1ac962cca5422</id>
<content type='text'>
reqeuestingClient was dropped with the XPRINT drop. Unfortunetely we
are usign it in Image.c. So let's introduce nxagentRequestingClient as
replacement for now.
</content>
</entry>
<entry>
<title>mi: Avoid stack smash when drawing dashed lines</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:42:17+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=d3ae4a0ed35487fc03b40aac150f74d990ded1e3'/>
<id>urn:sha1:d3ae4a0ed35487fc03b40aac150f74d990ded1e3</id>
<content type='text'>
Backport of this xorg-xserver upstream patch:

  commit 20c2a3bcb11b5baf564e2c73a477ba23f5ae2b10
  Author: Peter Harris &lt;pharris@opentext.com&gt;
  Date:   Mon Jul 15 19:44:29 2013 -0400

    mi: Avoid stack smash when drawing dashed lines

    X.org Bug 54013 &lt;https://bugs.freedesktop.org/show_bug.cgi?id=54013&gt;

    Reviewed-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Signed-off-by: Peter Harris &lt;pharris@opentext.com&gt;
</content>
</entry>
<entry>
<title>miwindow.c: mark NX changes</title>
<updated>2020-01-05T21:37:36+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-05-26T09:58:01+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=f48e2da3e86b2d7600de3d5d4ef6f81ba2c17bed'/>
<id>urn:sha1:f48e2da3e86b2d7600de3d5d4ef6f81ba2c17bed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mi/miexpose.c: add missing free()</title>
<updated>2019-06-22T09:30:54+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-20T21:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=c8520ac0aabb475d92ea6b60e3113f2999c04eb8'/>
<id>urn:sha1:c8520ac0aabb475d92ea6b60e3113f2999c04eb8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mi/miinitext.c: fix memleaks: remove (double) glx initialization</title>
<updated>2019-06-18T22:49:57+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-06-18T16:57:17+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=5cb497146091acf84f389f6b459f5d2f8ea86643'/>
<id>urn:sha1:5cb497146091acf84f389f6b459f5d2f8ea86643</id>
<content type='text'>
Fix these memory leaks:

==30021== 128 bytes in 1 blocks are definitely lost in loss record 230 of 302
==30021==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==30021==    by 0x2EF89C: init_visuals (xf86glx.c:390)
==30021==    by 0x2EF89C: __MESA_initVisuals (xf86glx.c:541)
==30021==    by 0x17C922: GlxInitVisuals (glxext.c:317)
==30021==    by 0x218E73: fbInitVisuals (fbcmap.c:668)
==30021==    by 0x20BEB1: fbFinishScreenInit (fbscreen.c:229)
==30021==    by 0x20C275: fbScreenInit (fbscreen.c:273)
==30021==    by 0x1E0317: nxagentOpenScreen (Screen.c:1357)
==30021==    by 0x16D848: AddScreen (dispatch.c:4171)
==30021==    by 0x1DB7FF: InitOutput (Init.c:396)
==30021==    by 0x14DB12: main (main.c:279)
==30021==
==30021== 3,072 (192 direct, 2,880 indirect) bytes in 1 blocks are definitely lost in loss record 290 of 302
==30021==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==30021==    by 0x2CCCC7: _gl_context_modes_create (glcontextmodes.c:364)
==30021==    by 0x2EF87C: init_visuals (xf86glx.c:381)
==30021==    by 0x2EF87C: __MESA_initVisuals (xf86glx.c:541)
==30021==    by 0x17C922: GlxInitVisuals (glxext.c:317)
==30021==    by 0x218E73: fbInitVisuals (fbcmap.c:668)
==30021==    by 0x20BEB1: fbFinishScreenInit (fbscreen.c:229)
==30021==    by 0x20C275: fbScreenInit (fbscreen.c:273)
==30021==    by 0x1E0317: nxagentOpenScreen (Screen.c:1357)
==30021==    by 0x16D848: AddScreen (dispatch.c:4171)
==30021==    by 0x1DB7FF: InitOutput (Init.c:396)
==30021==    by 0x14DB12: main (main.c:279)

The problem here is that GlxInitVisuals is called twice. First via
fbScreenInit and then again via nxagentInitGlxExtension. We remove the
first one to ensure the code in nxagenOpenScreen works as initially
intended.

There's an xorg upstream patch that does the same
(7d74690536b64f7b8e8036507ab7790807349c50), but it also cleans up
other stuff we do not even have in out source (yet?).
</content>
</entry>
<entry>
<title>miwindow.c: add hint to Red Hat Bugzilla + fix</title>
<updated>2019-06-12T16:45:02+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-05-01T00:06:30+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=b961e190bc69bc93cb1f3fd6cbff7e9c1247de25'/>
<id>urn:sha1:b961e190bc69bc93cb1f3fd6cbff7e9c1247de25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mi: Hush an almost certainly bogus warning</title>
<updated>2019-06-12T16:45:02+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2019-05-03T23:44:36+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=28e42b3bd0d7fb5d5674acd256fed5e84903a271'/>
<id>urn:sha1:28e42b3bd0d7fb5d5674acd256fed5e84903a271</id>
<content type='text'>
  commit 57e872301f5e836be2efb8f952f9c9711650b447
  Author: Adam Jackson &lt;ajax@redhat.com&gt;
  Date:   Thu Apr 5 13:07:09 2018 -0400

    mi: Hush an almost certainly bogus warning

    In file included from ../mi/miexpose.c:83:
    ../mi/miexpose.c: In function ‘miHandleExposures’:
    ../include/regionstr.h:174:22: warning: ‘expBox.y2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         (_pReg)-&gt;extents = *(_pBox);
         ~~~~~~~~~~~~~~~~~^~~~~~~~~~
    ../mi/miexpose.c:139:12: note: ‘expBox.y2’ was declared here
         BoxRec expBox;
                ^~~~~~

    etc. It's initialized if (extents), and then only read if (extents),
    but gcc doesn't seem to figure that out. Whatever, bzero it to be
    explicit.

    Signed-off-by: Adam Jackson &lt;ajax@redhat.com&gt;
    Acked-by: Keith Packard &lt;keithp@keithp.com&gt;
</content>
</entry>
</feed>
