<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/programs/Xserver/hw/nxagent/Screen.c, branch 3713346f</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://openid.arctica-project.org/nx-libs/atom?h=3713346f</id>
<link rel='self' href='https://openid.arctica-project.org/nx-libs/atom?h=3713346f'/>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/'/>
<updated>2016-05-02T12:53:06+00:00</updated>
<entry>
<title>hw/nxagent/Screen.c: Cast proper types before handing values over to fprintf().</title>
<updated>2016-05-02T12:53:06+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-03-18T15:46:34+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=b5b7a2d26b4c2b02fa2889e1ed9e0c64ccfb8273'/>
<id>urn:sha1:b5b7a2d26b4c2b02fa2889e1ed9e0c64ccfb8273</id>
<content type='text'>
 Amends the following compiler warnings:

 ```
 Screen.c: In function ‘nxagentCreateIconWindow’:
 Screen.c:394:15: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                nxagentIconWindow);
                ^
 Screen.c: In function ‘nxagentSetScreenSaverTime’:
 Screen.c:456:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘CARD32’ [-Wformat=]
                    ScreenSaverTime, ScreenSaverInterval);
                    ^
 Screen.c:456:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘CARD32’ [-Wformat=]
 Screen.c:476:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘CARD32’ [-Wformat=]
                    ScreenSaverTime, ScreenSaverInterval);
                    ^
 Screen.c:476:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘CARD32’ [-Wformat=]
 Screen.c: In function ‘nxagentOpenScreen’:
 Screen.c:1234:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘VisualID’ [-Wformat=]
                    visuals[numVisuals].vid);
                    ^
 Screen.c:1274:23: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘VisualID’ [-Wformat=]
                        depths[depthIndex].depth);
                        ^
 Screen.c:1282:17: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘VisualID’ [-Wformat=]
                  defaultVisualIndex, visuals[defaultVisualIndex].vid);
                  ^
 Screen.c:1319:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                    rootDepth, defaultVisual);
                    ^
 Screen.c:1336:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                    rootDepth, defaultVisual);
                    ^
 Screen.c:1348:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                    rootDepth, defaultVisual);
                    ^
 Screen.c:1357:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘VisualID’ [-Wformat=]
                    rootDepth, defaultVisual);
                    ^
 Screen.c:1723:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                      nxagentDefaultWindows[pScreen-&gt;myNum]);
                      ^
 Screen.c:1763:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                    nxagentDefaultWindows[pScreen-&gt;myNum]);
                    ^
 Screen.c:1775:17: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                  nxagentDefaultWindows[pScreen-&gt;myNum]);
                  ^
 Screen.c:1790:17: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘Window’ [-Wformat=]
                  nxagentDefaultWindows[pScreen-&gt;myNum]);
                  ^
 Screen.c: In function ‘nxagentShadowAdaptDepth’:
 Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
               pVisual -&gt; red_mask, pVisual -&gt; green_mask, pVisual -&gt; blue_mask);
               ^
 Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
 Screen.c:3189:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
 Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
                redMask, greenMask, blueMask);
                ^
 Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
 Screen.c:3198:15: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
 ```
</content>
</entry>
<entry>
<title>hw/nxagent/Screen.c: Drop various unused variables.</title>
<updated>2016-05-02T12:53:06+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-03-18T15:45:59+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=ab50f84b50c8f11e0be813a5e54ca307e72a656f'/>
<id>urn:sha1:ab50f84b50c8f11e0be813a5e54ca307e72a656f</id>
<content type='text'>
 Amends the following compiler warnings:

 ```
 Screen.c: In function ‘nxagentReconnectScreen’:
 Screen.c:3547:7: warning: variable ‘flexibility’ set but not used [-Wunused-but-set-variable]
   int flexibility;
       ^
 Screen.c: In function ‘nxagentAdjustRandRXinerama’:
 Screen.c:3746:12: warning: unused variable ‘j’ [-Wunused-variable]
      int i, j;
             ^
 Screen.c: In function ‘nxagentSaveAreas’:
 Screen.c:4116:15: warning: variable ‘pDrawable’ set but not used [-Wunused-but-set-variable]
    DrawablePtr pDrawable;
                ^
 Screen.c: In function ‘nxagentRestoreAreas’:
 Screen.c:4236:15: warning: variable ‘pDrawable’ set but not used [-Wunused-but-set-variable]
    DrawablePtr pDrawable;
                ^
 ```
</content>
</entry>
<entry>
<title>hw/nxagent/Screen.h: Provide prototype for nxagentAdjustRandRXinerama(). Avoid implicit-declaration compiler warning.</title>
<updated>2016-05-02T12:53:06+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-03-18T15:35:43+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=ef287b54f0a1b23402ba9e8cb6cb8be7b7455a3b'/>
<id>urn:sha1:ef287b54f0a1b23402ba9e8cb6cb8be7b7455a3b</id>
<content type='text'>
 Amends the following compiler warning:

 ```
 Screen.c:3716:5: warning: implicit declaration of function ‘nxagentAdjustRandRXinerama’ [-Wimplicit-function-declaration]
      nxagentAdjustRandRXinerama(pScreen);
      ^
 ```
</content>
</entry>
<entry>
<title>hw/nxagent/Screen.c: Correctly use already defined MIN/MAX macros.</title>
<updated>2016-05-02T12:53:06+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-03-18T15:34:43+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=72386e1718da8ccd1eb42bf1e8565b8f411cfc38'/>
<id>urn:sha1:72386e1718da8ccd1eb42bf1e8565b8f411cfc38</id>
<content type='text'>
 Use MIN(A,B) macro as defined in Utils.h. Add MAX(A,B) macro in Utils.h,
 as well. Don't have another set of MIN/MAX macro definitions in
 Screen.c.

 Amends the following compiler warnings:

 ```
 Screen.c:3600:0: warning: "MIN" redefined
  #define MIN(a,b) ((a) &lt; (b)) ? (a) : (b);
  ^
 In file included from Screen.c:78:0:
 Utils.h:36:0: note: this is the location of the previous definition
  #define MIN(A, B) ( (A) &lt; (B) ? (A) : (B) )
  ^
 ```
</content>
</entry>
<entry>
<title>Rename region macros to eliminate screen argument</title>
<updated>2016-05-02T12:53:06+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2016-03-16T10:11:43+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=63f1fff8fe1e7f94ebc0a72df773c6f77531f7a4'/>
<id>urn:sha1:63f1fff8fe1e7f94ebc0a72df773c6f77531f7a4</id>
<content type='text'>
This is a huge mechanical patch and a few small fixups required to finish
the job. They were reviewed separately, but because the server does not
build without both pieces, I've merged them together at this time.

The mechanical changes were performed by running the included
'fix-region' script over the whole nx-X11/programs/Xserver tree:

$ cd nx-X11/programs/Xserver &amp;&amp; ( git ls-files | grep -v '^fix-' | xargs ./fix-region; )

And then, the white space errors in the resulting patch were fixed
using the provided fix-patch-whitespace script.

$ sh ./fix-patch-whitespace

Thanks to Jamey Sharp for the mighty fine sed-generating sed script.

v1: Keith Packard &lt;keithp@keithp.com&gt; (X.Org xserver commit: 2dc138922b7588515d5f2447e4b9dcdc0bef15e0)
v2: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt; (apply fix-region script to nx-libs)
</content>
</entry>
<entry>
<title>Xinerama: do not cut off at outer edges</title>
<updated>2015-12-29T23:05:54+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2015-10-08T20:25:09+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=c4a388937baad8215f2650d746d3ddba4d4d1ee3'/>
<id>urn:sha1:c4a388937baad8215f2650d746d3ddba4d4d1ee3</id>
<content type='text'>
This fixes the problem Mike Gabriel describes like this:

- Launch a session on a system with a single monitor. Enable Xinerama
  for this session.
- Open a desktop session in that session window (e.g. MATE or XFCE).
- Move the NX/MATE-or-XFCE session window around on that one
  monitor. Bump at the borders, so that the session window moves into
  the invisible parts around your monitor.

What you see is that the MATE-or-XFCE window manager will become
really busy with resizing the windows and panels in the NX session,
because moving the window over the physical borders of the display
will trigger resize events.

This is non-intuitive, I think.

Same with multi-monitors on the outside edges of the physical Xorg
RandR setup.
</content>
</entry>
<entry>
<title>Provide support for re-enabling Xinerama on session resumptions.</title>
<updated>2015-12-29T23:05:53+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2015-10-07T18:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=0297567cd501b6fc012c41ff4a1ae27304ff6a10'/>
<id>urn:sha1:0297567cd501b6fc012c41ff4a1ae27304ff6a10</id>
<content type='text'>
 By design, when resuming a session, Xinerama can only be re-enabled
 by NX option parsing.

 Thus, this change introduces a "xinerama" NX option that can
 be loaded via an options file into NX agent when resuming
 a session. The new xinerame NX session option also allows
 switching on Xinerama at session startup via an option file.

 When implementing the new NX Xinerama support into clients (like
 TheQVD, X2Go Client, etc., this new xinerama NX option should be
 used for activating Xinerama in the NX / QVD / X2Go session.
</content>
</entry>
<entry>
<title>Screen.c: Rename NX_USE_MODE_PREFIX to NXAGENT_RANDR_MODE_PREFIX, fix unclosed comment.</title>
<updated>2015-12-29T23:05:53+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2015-10-07T13:17:59+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=f1eafeaa456b1544384bb6a68d8a56c0a216a875'/>
<id>urn:sha1:f1eafeaa456b1544384bb6a68d8a56c0a216a875</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Screen.c: restructure xinerama code, much shorter now</title>
<updated>2015-12-29T23:05:53+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2015-10-06T20:53:16+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=9b87a384e24a4b8873e0dc5853e6b573791f0d33'/>
<id>urn:sha1:9b87a384e24a4b8873e0dc5853e6b573791f0d33</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Screen.c: Fix freeing of unsued modes</title>
<updated>2015-12-29T23:05:53+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2015-10-06T20:32:12+00:00</published>
<link rel='alternate' type='text/html' href='https://openid.arctica-project.org/nx-libs/commit/?id=359f48dd7e036b5a009efe04033041bda8bd954f'/>
<id>urn:sha1:359f48dd7e036b5a009efe04033041bda8bd954f</id>
<content type='text'>
</content>
</entry>
</feed>
