@@ -197,10 +197,12 @@ int ddxProcessArgument(int argc, char *argv[], int i)
197
197
nxagentProgName = strdup (basename (basec ));
198
198
SAFE_free (basec );
199
199
200
+ #ifdef X2GO
200
201
/*
201
202
* Check if we are running as X2Go Agent
202
203
*/
203
204
checkX2goAgent ();
205
+ #endif
204
206
}
205
207
206
208
#ifdef TEST
@@ -691,6 +693,7 @@ int ddxProcessArgument(int argc, char *argv[], int i)
691
693
{
692
694
SAFE_free (nxagentKeyboard );
693
695
696
+ #ifdef X2GO
694
697
if (nxagentX2go && strcmp (argv [i ], "null/null" ) == 0 )
695
698
{
696
699
#ifdef TEST
@@ -701,6 +704,7 @@ int ddxProcessArgument(int argc, char *argv[], int i)
701
704
nxagentKeyboard = strdup ("clone" );
702
705
}
703
706
else
707
+ #endif
704
708
{
705
709
nxagentKeyboard = strdup (argv [i ]);
706
710
}
@@ -733,6 +737,14 @@ int ddxProcessArgument(int argc, char *argv[], int i)
733
737
return 1 ;
734
738
}
735
739
740
+ /* the composite extension is disabled by default so we provide a
741
+ way to enable it */
742
+ if (!strcmp (argv [i ], "-composite" ))
743
+ {
744
+ nxagentChangeOption (Composite , True );
745
+ return 1 ;
746
+ }
747
+
736
748
if (!strcmp (argv [i ], "-nodamage" ))
737
749
{
738
750
nxagentChangeOption (UseDamage , False );
@@ -1775,11 +1787,13 @@ N/A
1775
1787
1776
1788
if (* nxagentWindowName == '\0' )
1777
1789
{
1778
- if (nxagentX2go )
1790
+ #ifdef X2GO
1791
+ if (nxagentX2go )
1779
1792
{
1780
1793
snprintf (nxagentWindowName , NXAGENTWINDOWNAMELENGTH , "X2Go Agent" );
1781
1794
}
1782
1795
else
1796
+ #endif
1783
1797
{
1784
1798
snprintf (nxagentWindowName , NXAGENTWINDOWNAMELENGTH , "NX Agent" );
1785
1799
}
@@ -1870,11 +1884,11 @@ N/A
1870
1884
fprintf (stderr , "nxagentPostProcessArgs: WARNING! Using backward compatible alpha encoding.\n" );
1871
1885
#endif
1872
1886
1873
- nxagentAlphaCompat = 1 ;
1887
+ nxagentAlphaCompat = True ;
1874
1888
}
1875
1889
else
1876
1890
{
1877
- nxagentAlphaCompat = 0 ;
1891
+ nxagentAlphaCompat = False ;
1878
1892
}
1879
1893
1880
1894
nxagentRemoteMajor = remoteMajor ;
@@ -1984,16 +1998,16 @@ FIXME: In rootless mode the backing-store support is not functional yet.
1984
1998
*/
1985
1999
if (nxagentOption (Rootless ))
1986
2000
{
1987
- enableBackingStore = 0 ;
2001
+ enableBackingStore = FALSE ;
1988
2002
}
1989
2003
else if (nxagentOption (BackingStore ) == BackingStoreUndefined ||
1990
2004
nxagentOption (BackingStore ) == BackingStoreForce )
1991
2005
{
1992
- enableBackingStore = 1 ;
2006
+ enableBackingStore = TRUE ;
1993
2007
}
1994
2008
else if (nxagentOption (BackingStore ) == BackingStoreNever )
1995
2009
{
1996
- enableBackingStore = 0 ;
2010
+ enableBackingStore = FALSE ;
1997
2011
}
1998
2012
1999
2013
/*
@@ -2098,9 +2112,13 @@ void ddxUseMsg(void)
2098
2112
ErrorF ("-autodpi detect real server's DPI and use that in the session\n" );
2099
2113
ErrorF ("-display string display name of the real server\n" );
2100
2114
ErrorF ("-sync synchronize with the real server\n" );
2115
+ ErrorF ("-nxrealwindowprop set property NX_REAL_WINDOW for each X11 window inside nxagent\n" );
2116
+ ErrorF ("-reportwids report externally exposed X11 window IDs to the session log\n" );
2117
+ ErrorF ("-reportprivatewids report internal X11 window ID to the session log\n" );
2101
2118
#ifdef RENDER
2102
2119
ErrorF ("-norender disable the use of the render extension\n" );
2103
- ErrorF ("-nocomposite disable the use of the composite extension\n" );
2120
+ ErrorF ("-nocomposite disable the use of the composite extension (default)\n" );
2121
+ ErrorF ("-composite enable the use of the composite extension\n" );
2104
2122
#endif
2105
2123
ErrorF ("-nopersistent disable disconnection/reconnection to the X display on SIGHUP\n" );
2106
2124
ErrorF ("-noshmem disable use of shared memory extension\n" );
@@ -2114,6 +2132,7 @@ void ddxUseMsg(void)
2114
2132
ErrorF ("-irlimit maximum image data rate to the encoder input in kB/s.\n" );
2115
2133
ErrorF ("-tile WxH maximum size of image tiles (minimum allowed: 32x32)\n" );
2116
2134
ErrorF ("-keystrokefile file file with keyboard shortcut definitions\n" );
2135
+ ErrorF ("-options file|string path to an options file or an option string (for testing/debugging)\n" );
2117
2136
ErrorF ("-verbose print more warning and error messages\n" );
2118
2137
ErrorF ("-D enable desktop mode\n" );
2119
2138
ErrorF ("-R enable rootless mode\n" );
0 commit comments