<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jogamp.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_use_X11_displays</id>
	<title>How to use X11 displays - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jogamp.org/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_use_X11_displays"/>
	<link rel="alternate" type="text/html" href="https://jogamp.org/wiki/index.php?title=How_to_use_X11_displays&amp;action=history"/>
	<updated>2026-04-21T13:21:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://jogamp.org/wiki/index.php?title=How_to_use_X11_displays&amp;diff=936&amp;oldid=prev</id>
		<title>Mriechert: Created page with &#039;In JOGL, there is always one X11 display that is designated as the &#039;&#039;default display&#039;&#039;. By default, this is the display specified by the environment variable &#039;&#039;&#039;DISPLAY&#039;&#039;&#039;. When …&#039;</title>
		<link rel="alternate" type="text/html" href="https://jogamp.org/wiki/index.php?title=How_to_use_X11_displays&amp;diff=936&amp;oldid=prev"/>
		<updated>2013-06-13T10:24:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;In JOGL, there is always one X11 display that is designated as the &amp;#039;&amp;#039;default display&amp;#039;&amp;#039;. By default, this is the display specified by the environment variable &amp;#039;&amp;#039;&amp;#039;DISPLAY&amp;#039;&amp;#039;&amp;#039;. When …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In JOGL, there is always one X11 display that is designated as the &amp;#039;&amp;#039;default display&amp;#039;&amp;#039;. By default, this is the display specified by the environment variable &amp;#039;&amp;#039;&amp;#039;DISPLAY&amp;#039;&amp;#039;&amp;#039;. When running a Desktop Linux this variable is inherited to all processes such that nothing special has to be done to use JOGL for this standard case.&lt;br /&gt;
&lt;br /&gt;
Using a different default display is possible by either changing the &amp;#039;&amp;#039;&amp;#039;DISPLAY&amp;#039;&amp;#039;&amp;#039; environment variable prior to running the Java process, or alternatively by specifying the Java system property &amp;#039;&amp;#039;&amp;#039;nativewindow.x11.display.default&amp;#039;&amp;#039;&amp;#039; prior to invoking any JOGL code (see [https://github.com/sgothel/jogl/blob/master/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestX11DefaultDisplay.java?source=cc| this test case]). The system property has precedence over the environment variable if both are set. Using the system property can be useful in situations where the environment variable cannot be changed before running the Java process. This might be the case if the logic for choosing the right display is only known at runtime (think about server-based rendering with several available virtual displays (using X virtual framebuffers) where each render node (a Java process) reads its configuration (the display to use) on program start).&lt;br /&gt;
&lt;br /&gt;
Apart from changing the default display, JOGL allows to connect to additional (e.g. remote) displays. See [https://github.com/sgothel/jogl/blob/master/src/test/com/jogamp/opengl/test/junit/newt/TestRemoteGLWindows01NEWT.java?source=cc| this example] or [https://github.com/sgothel/jogl/blob/master/src/test/com/jogamp/opengl/test/junit/newt/TestRemoteWindow01NEWT.java?source=cc| this example].&lt;/div&gt;</summary>
		<author><name>Mriechert</name></author>
	</entry>
</feed>