Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
11b534ab
Unverified
Commit
11b534ab
authored
May 24, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/codespell' into 3.6.x
Attributes GH PR #686:
https://github.com/ArcticaProject/nx-libs/pull/686
parents
997f2bbd
cce97565
Show whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
91 additions
and
92 deletions
+91
-92
nx-macros.m4
m4/nx-macros.m4
+4
-4
Imake.rules
nx-X11/config/cf/Imake.rules
+2
-2
Imake.tmpl
nx-X11/config/cf/Imake.tmpl
+1
-1
gnu.cf
nx-X11/config/cf/gnu.cf
+1
-1
host.def
nx-X11/config/cf/host.def
+1
-1
linux.cf
nx-X11/config/cf/linux.cf
+1
-1
xorg.cf
nx-X11/config/cf/xorg.cf
+1
-1
xorgsite.def
nx-X11/config/cf/xorgsite.def
+1
-1
Atoms.c
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+5
-5
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+1
-1
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+3
-3
Drawable.c
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+5
-5
Error.c
nx-X11/programs/Xserver/hw/nxagent/Error.c
+1
-1
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+1
-1
Font.c
nx-X11/programs/Xserver/hw/nxagent/Font.c
+3
-3
Handlers.c
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+1
-1
Image.c
nx-X11/programs/Xserver/hw/nxagent/Image.c
+4
-4
Image.h
nx-X11/programs/Xserver/hw/nxagent/Image.h
+1
-1
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+1
-1
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+1
-1
NXevents.c
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+1
-1
NXresource.c
nx-X11/programs/Xserver/hw/nxagent/NXresource.c
+2
-2
NXwindow.c
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
+2
-2
Options.h
nx-X11/programs/Xserver/hw/nxagent/Options.h
+2
-2
Pixels.h
nx-X11/programs/Xserver/hw/nxagent/Pixels.h
+3
-4
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+1
-1
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+3
-3
Visual.c
nx-X11/programs/Xserver/hw/nxagent/Visual.c
+2
-2
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+6
-6
Compext.c
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.c
+1
-1
Compext.h
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.h
+2
-2
Png.c
nx-X11/programs/Xserver/hw/nxagent/compext/Png.c
+2
-2
Z.c
nx-X11/programs/Xserver/hw/nxagent/compext/Z.c
+1
-1
nxagent.1
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
+1
-1
Agent.h
nxcomp/src/Agent.h
+1
-1
Children.cpp
nxcomp/src/Children.cpp
+1
-1
ClientChannel.cpp
nxcomp/src/ClientChannel.cpp
+2
-2
Control.cpp
nxcomp/src/Control.cpp
+1
-1
DecodeBuffer.cpp
nxcomp/src/DecodeBuffer.cpp
+1
-1
GenericReadBuffer.cpp
nxcomp/src/GenericReadBuffer.cpp
+1
-1
Keeper.cpp
nxcomp/src/Keeper.cpp
+1
-1
Loop.cpp
nxcomp/src/Loop.cpp
+4
-4
MD5.c
nxcomp/src/MD5.c
+1
-1
Proxy.h
nxcomp/src/Proxy.h
+1
-1
PutPackedImage.h
nxcomp/src/PutPackedImage.h
+1
-1
Statistics.cpp
nxcomp/src/Statistics.cpp
+3
-3
Core.cpp
nxcompshad/src/Core.cpp
+1
-1
Manager.cpp
nxcompshad/src/Manager.cpp
+1
-1
X11.cpp
nxcompshad/src/X11.cpp
+2
-2
Main.c
nxproxy/src/Main.c
+1
-1
No files found.
m4/nx-macros.m4
View file @
11b534ab
...
@@ -51,7 +51,7 @@ AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
...
@@ -51,7 +51,7 @@ AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
# NX_TESTSET_CFLAG(<variable>, <flag>, [<alternative flag>, ...])
# NX_TESTSET_CFLAG(<variable>, <flag>, [<alternative flag>, ...])
# ---------------
# ---------------
# Test if the compiler works when passed the given flag as a command line argument.
# Test if the compiler works when passed the given flag as a command line argument.
# If it succeeds, the flag is appen
e
ded to the given variable. If not, it tries the
# If it succeeds, the flag is appended to the given variable. If not, it tries the
# next flag in the list until there are no more options.
# next flag in the list until there are no more options.
#
#
# Note that this does not guarantee that the compiler supports the flag as some
# Note that this does not guarantee that the compiler supports the flag as some
...
@@ -212,7 +212,7 @@ NX_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
...
@@ -212,7 +212,7 @@ NX_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
# NX_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
# NX_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
# NX_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
# NX_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
# Turn some warnings into errors, so we don't accidently get successful builds
# Turn some warnings into errors, so we don't accident
al
ly get successful builds
# when there are problems that should be fixed.
# when there are problems that should be fixed.
if test "x$SELECTIVE_WERROR" = "xyes" ; then
if test "x$SELECTIVE_WERROR" = "xyes" ; then
...
@@ -425,7 +425,7 @@ AM_CONDITIONAL([TARGET_ELF], [test x"$nxconf_cv_targetelf" = "xyes"])
...
@@ -425,7 +425,7 @@ AM_CONDITIONAL([TARGET_ELF], [test x"$nxconf_cv_targetelf" = "xyes"])
]) # NX_TARGET_USE_ELF
]) # NX_TARGET_USE_ELF
AC_DEFUN([LIBJPEG_FALLBACK_CHECK],[
AC_DEFUN([LIBJPEG_FALLBACK_CHECK],[
AC_MSG_CHECKING([for libjpeg shared libary file and headers])
AC_MSG_CHECKING([for libjpeg shared lib
r
ary file and headers])
AC_CHECK_LIB([jpeg], [jpeg_destroy_compress],
AC_CHECK_LIB([jpeg], [jpeg_destroy_compress],
[have_jpeg_lib=yes], [have_jpeg_lib=no])
[have_jpeg_lib=yes], [have_jpeg_lib=no])
AC_CHECK_HEADERS([jpeglib.h],
AC_CHECK_HEADERS([jpeglib.h],
...
@@ -443,7 +443,7 @@ fi
...
@@ -443,7 +443,7 @@ fi
]) # LIBJPEG_FALLBACK_CHECK
]) # LIBJPEG_FALLBACK_CHECK
AC_DEFUN([ZLIB_FALLBACK_CHECK],[
AC_DEFUN([ZLIB_FALLBACK_CHECK],[
AC_MSG_CHECKING([for zlib shared libary file and headers])
AC_MSG_CHECKING([for zlib shared lib
r
ary file and headers])
AC_CHECK_LIB([z], [inflateEnd],
AC_CHECK_LIB([z], [inflateEnd],
[have_zlib_lib=yes], [have_zlib_lib=no])
[have_zlib_lib=yes], [have_zlib_lib=no])
AC_CHECK_HEADERS([zlib.h],
AC_CHECK_HEADERS([zlib.h],
...
...
nx-X11/config/cf/Imake.rules
View file @
11b534ab
...
@@ -1185,7 +1185,7 @@ clean:: @@\
...
@@ -1185,7 +1185,7 @@ clean:: @@\
/* This rule is used for libs in Xserver/Imakefile which are loaded, not
/* This rule is used for libs in Xserver/Imakefile which are loaded, not
* linked into the core module. Since modules are called libXXXX.a,
* linked into the core module. Since modules are called libXXXX.a,
* this rule mustn't be overriden by .cf files.
* this rule mustn't be overrid
d
en by .cf files.
*/
*/
#ifndef ModuleLibraryTargetName
#ifndef ModuleLibraryTargetName
#define ModuleLibraryTargetName(libname)Concat(lib,libname.a)
#define ModuleLibraryTargetName(libname)Concat(lib,libname.a)
...
@@ -3609,7 +3609,7 @@ clean:: @@\
...
@@ -3609,7 +3609,7 @@ clean:: @@\
#endif
#endif
/* Phony targets - GNU make has a feature to mark a target as phony,
/* Phony targets - GNU make has a feature to mark a target as phony,
* which means that it wont consider that target to be the name of a
* which means that it won
'
t consider that target to be the name of a
* file. In general this speeds up make, since it doesn't have to
* file. In general this speeds up make, since it doesn't have to
* look for those files when it sets out to create a phony target.
* look for those files when it sets out to create a phony target.
* However, on cygwin, this is actually required for correct
* However, on cygwin, this is actually required for correct
...
...
nx-X11/config/cf/Imake.tmpl
View file @
11b534ab
...
@@ -1736,7 +1736,7 @@ CXXEXTRA_INCLUDES = CplusplusExtraIncludes
...
@@ -1736,7 +1736,7 @@ CXXEXTRA_INCLUDES = CplusplusExtraIncludes
#else
#else
CPP = CppCmd $(STD_CPP_DEFINES) /* simple filters */
CPP = CppCmd $(STD_CPP_DEFINES) /* simple filters */
RAWCPP = RawCppCmd $(STD_CPP_OPTIONS)
RAWCPP = RawCppCmd $(STD_CPP_OPTIONS)
PREPROCESSCMD = PreProcessCmd $(STD_CPP_DEFINES) /* prefered; mdep */
PREPROCESSCMD = PreProcessCmd $(STD_CPP_DEFINES) /* prefer
r
ed; mdep */
#endif
#endif
INSTALL = InstallCmd
INSTALL = InstallCmd
INSTALLFLAGS = InstallFlags
INSTALLFLAGS = InstallFlags
...
...
nx-X11/config/cf/gnu.cf
View file @
11b534ab
...
@@ -142,7 +142,7 @@ XCOMM i386Architecture
...
@@ -142,7 +142,7 @@ XCOMM i386Architecture
#define ConnectionFlags -DUNIXCONN -DTCPCONN
#define ConnectionFlags -DUNIXCONN -DTCPCONN
/* Some of these man page defaults are overriden in the above OS sections */
/* Some of these man page defaults are overrid
d
en in the above OS sections */
#ifndef ManSuffix
#ifndef ManSuffix
# define ManSuffix 1x
# define ManSuffix 1x
#endif
#endif
...
...
nx-X11/config/cf/host.def
View file @
11b534ab
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
/*
/*
* To use the deprecated, old keyboard driver, uncomment this. But
* To use the deprecated, old keyboard driver, uncomment this. But
* even better, make the new keyboard driver (hw/xfree86/input/keyboard)
* even better, make the new keyboard driver (hw/xfree86/input/keyboard)
* work for your architec
h
ture. The old driver will be removed in the
* work for your architecture. The old driver will be removed in the
* next release.
* next release.
*
*
#define UseDeprecatedKeyboardDriver YES
#define UseDeprecatedKeyboardDriver YES
...
...
nx-X11/config/cf/linux.cf
View file @
11b534ab
...
@@ -875,7 +875,7 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion)
...
@@ -875,7 +875,7 @@ XCOMM binutils: (LinuxBinUtilsMajorVersion)
#define ConnectionFlags -DUNIXCONN -DTCPCONN
#define ConnectionFlags -DUNIXCONN -DTCPCONN
/* Some of these man page defaults are overriden in the above OS sections */
/* Some of these man page defaults are overrid
d
en in the above OS sections */
#ifndef ManSuffix
#ifndef ManSuffix
# define ManSuffix 1x
# define ManSuffix 1x
#endif
#endif
...
...
nx-X11/config/cf/xorg.cf
View file @
11b534ab
...
@@ -645,7 +645,7 @@ DRIVERSDKMODULEDIR = DriverSDKModuleDir
...
@@ -645,7 +645,7 @@ DRIVERSDKMODULEDIR = DriverSDKModuleDir
DRIVERSDKINCLUDEDIR = DriverSDKIncludeDir
DRIVERSDKINCLUDEDIR = DriverSDKIncludeDir
/*
/*
* Some commonly refered to directories are defined here.
* Some commonly refer
r
ed to directories are defined here.
*/
*/
XF86SRC = $(SERVERSRC)/hw/xfree86
XF86SRC = $(SERVERSRC)/hw/xfree86
...
...
nx-X11/config/cf/xorgsite.def
View file @
11b534ab
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
/*
/*
* To use the deprecated, old keyboard driver, uncomment this. But
* To use the deprecated, old keyboard driver, uncomment this. But
* even better, make the new keyboard driver (hw/xfree86/input/keyboard)
* even better, make the new keyboard driver (hw/xfree86/input/keyboard)
* work for your architec
h
ture. The old driver will be removed in the
* work for your architecture. The old driver will be removed in the
* next release.
* next release.
*
*
#define UseDeprecatedKeyboardDriver YES
#define UseDeprecatedKeyboardDriver YES
...
...
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
View file @
11b534ab
...
@@ -416,7 +416,7 @@ static void nxagentWriteAtom(Atom local, Atom remote, const char *string, Bool d
...
@@ -416,7 +416,7 @@ static void nxagentWriteAtom(Atom local, Atom remote, const char *string, Bool d
/*
/*
* FIXME: We should clean up the atom map
* FIXME: We should clean up the atom map
* at nxagent reset, in order to cancel
* at nxagent reset, in order to cancel
* all the local atoms but still ma
ntaining
* all the local atoms but still ma
intaining
* the Xserver values and the atom names.
* the Xserver values and the atom names.
*/
*/
...
@@ -470,8 +470,8 @@ static int nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet)
...
@@ -470,8 +470,8 @@ static int nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet)
}
}
/*
/*
* Ask X-Server for our
s
Atoms
* Ask X-Server for our Atoms
* ... if successful
l
cache them too.
* ... if successful cache them too.
*/
*/
ret_value
=
XInternAtoms
(
nxagentDisplay
,
name_list
,
list_size
,
False
,
atom_list
);
ret_value
=
XInternAtoms
(
nxagentDisplay
,
name_list
,
list_size
,
False
,
atom_list
);
...
@@ -532,7 +532,7 @@ static int nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet)
...
@@ -532,7 +532,7 @@ static int nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet)
}
}
/*
/*
* If the nxagent has been reset
ted
,
* If the nxagent has been reset,
* the local value of the atoms stored
* the local value of the atoms stored
* in cache could have the value None,
* in cache could have the value None,
* do not call this function with None.
* do not call this function with None.
...
@@ -639,7 +639,7 @@ Atom nxagentMakeAtom(char *string, unsigned int length, Bool Makeit)
...
@@ -639,7 +639,7 @@ Atom nxagentMakeAtom(char *string, unsigned int length, Bool Makeit)
{
{
/*
/*
* Found Cached by name.
* Found Cached by name.
* It means that nxagent has been reset
ted
,
* It means that nxagent has been reset,
* but not the xserver so we still have cached its atoms.
* but not the xserver so we still have cached its atoms.
*/
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
11b534ab
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
#include "X11/include/Xfixes_nxagent.h"
#include "X11/include/Xfixes_nxagent.h"
/*
/*
* Use asyncronous get property replies.
* Use async
h
ronous get property replies.
*/
*/
#include "compext/Compext.h"
#include "compext/Compext.h"
...
...
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
11b534ab
...
@@ -589,8 +589,8 @@ FIXME: Should print a warning if the user tries to let
...
@@ -589,8 +589,8 @@ FIXME: Should print a warning if the user tries to let
the agent impersonate the same display as the
the agent impersonate the same display as the
display where the agent is supposed to connect.
display where the agent is supposed to connect.
We actually handle this by means of RejectWell-
We actually handle this by means of RejectWell-
KnownSockets() but without giving
to the user
KnownSockets() but without giving
a friendly
a friendly explaination for the erro
r.
explanation for the error to the use
r.
*/
*/
newAction
.
sa_handler
=
nxagentRejectConnection
;
newAction
.
sa_handler
=
nxagentRejectConnection
;
...
@@ -1280,7 +1280,7 @@ N/A
...
@@ -1280,7 +1280,7 @@ N/A
/*
/*
FIXME: Use of nxagentParentWindow is strongly deprecated.
FIXME: Use of nxagentParentWindow is strongly deprecated.
We need also to clarify which events are selected
We need also to clarify which events are selected
in the diferent operating modes.
in the dif
f
erent operating modes.
*/
*/
nxagentInitDefaultEventMask
();
nxagentInitDefaultEventMask
();
...
...
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
View file @
11b534ab
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
/*
/*
* If defined, send the XClearArea at the end
* If defined, send the XClearArea at the end
* of the loop synchronizing the shadow pixmap.
* of the loop synchronizing the shadow pixmap.
* In this way, large images can be split
ted
but
* In this way, large images can be split but
* the user will see more updates tog
het
er.
* the user will see more updates tog
eth
er.
*/
*/
#undef COLLECTED_UPDATES
#undef COLLECTED_UPDATES
...
@@ -643,7 +643,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
...
@@ -643,7 +643,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
fprintf
(
stderr
,
"nxagentSynchronizeRegion: WARNING! Failed to allocate memory for synchronization.
\n
"
);
fprintf
(
stderr
,
"nxagentSynchronizeRegion: WARNING! Failed to allocate memory for synchronization.
\n
"
);
/*
/*
* Print detailed information
s
if the
* Print detailed information if the
* image length is zero.
* image length is zero.
*/
*/
...
@@ -2645,8 +2645,8 @@ void nxagentCreateDrawableBitmap(DrawablePtr pDrawable)
...
@@ -2645,8 +2645,8 @@ void nxagentCreateDrawableBitmap(DrawablePtr pDrawable)
/*
/*
* Should create a function to append
* Should create a function to append
* a bitmap to another, instead of
de-
* a bitmap to another, instead of
*
stroy
the old one.
*
destroying
the old one.
*/
*/
if
(
nxagentDrawableBitmap
(
pDrawable
)
!=
NullPixmap
)
if
(
nxagentDrawableBitmap
(
pDrawable
)
!=
NullPixmap
)
...
...
nx-X11/programs/Xserver/hw/nxagent/Error.c
View file @
11b534ab
...
@@ -103,7 +103,7 @@ void nxagentGetClientsPath(void);
...
@@ -103,7 +103,7 @@ void nxagentGetClientsPath(void);
static
int
nxagentPrintError
(
Display
*
dpy
,
XErrorEvent
*
event
,
FILE
*
fp
);
static
int
nxagentPrintError
(
Display
*
dpy
,
XErrorEvent
*
event
,
FILE
*
fp
);
/* declare an error handler that does not exit when an error
/* declare an error handler that does not exit when an error
* event is ca
tched
.
* event is ca
ught
.
*/
*/
int
nxagentErrorHandler
(
Display
*
dpy
,
XErrorEvent
*
event
)
int
nxagentErrorHandler
(
Display
*
dpy
,
XErrorEvent
*
event
)
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
11b534ab
...
@@ -3231,7 +3231,7 @@ int nxagentHandleConfigureNotify(XEvent* X)
...
@@ -3231,7 +3231,7 @@ int nxagentHandleConfigureNotify(XEvent* X)
if
((
pWin
=
nxagentRootlessTopLevelWindow
(
X
->
xconfigure
.
window
))
!=
NULL
)
if
((
pWin
=
nxagentRootlessTopLevelWindow
(
X
->
xconfigure
.
window
))
!=
NULL
)
{
{
/*
/*
* Cheking for new geometry or stacking order changes.
* Che
c
king for new geometry or stacking order changes.
*/
*/
nxagentCheckWindowConfiguration
((
XConfigureEvent
*
)
X
);
nxagentCheckWindowConfiguration
((
XConfigureEvent
*
)
X
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Font.c
View file @
11b534ab
...
@@ -245,7 +245,7 @@ void nxagentListRemoteFonts(const char *searchPattern, const int maxNames)
...
@@ -245,7 +245,7 @@ void nxagentListRemoteFonts(const char *searchPattern, const int maxNames)
* number of dashes in the pattern acts as
* number of dashes in the pattern acts as
* a rule to select how to search for the
* a rule to select how to search for the
* font names, so the pattern '*' is useful
* font names, so the pattern '*' is useful
* to retrive the font aliases, while the
* to retri
e
ve the font aliases, while the
* other one will select the 'real' fonts.
* other one will select the 'real' fonts.
*/
*/
...
@@ -717,7 +717,7 @@ int nxagentDestroyNewFontResourceType(void * p, XID id)
...
@@ -717,7 +717,7 @@ int nxagentDestroyNewFontResourceType(void * p, XID id)
/*
/*
FIXME: It happens that this resource had been already
FIXME: It happens that this resource had been already
destro
i
ed. We should verify if the same font is
destro
y
ed. We should verify if the same font is
assigned both to the server client and another
assigned both to the server client and another
client. We had a crash when freeing server client
client. We had a crash when freeing server client
resources.
resources.
...
@@ -788,7 +788,7 @@ static XFontStruct *nxagentLoadBestQueryFont(Display* dpy, char *fontName, FontP
...
@@ -788,7 +788,7 @@ static XFontStruct *nxagentLoadBestQueryFont(Display* dpy, char *fontName, FontP
numSearchFields
=
nxagentSplitString
(
nxagentRemoteFontList
.
list
[
i
]
->
name
,
searchFields
,
FIELDS
+
1
,
"-"
);
numSearchFields
=
nxagentSplitString
(
nxagentRemoteFontList
.
list
[
i
]
->
name
,
searchFields
,
FIELDS
+
1
,
"-"
);
/* The following code attemps to find an accurate approximation
/* The following code attemp
t
s to find an accurate approximation
* of the missing font. The current candidate and the missing font are
* of the missing font. The current candidate and the missing font are
* compared on the 14 fields of the X Logical Font Description Convention.
* compared on the 14 fields of the X Logical Font Description Convention.
* The selection is performed by the analysis of the matching fields,
* The selection is performed by the analysis of the matching fields,
...
...
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
View file @
11b534ab
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
#define TIME_BEFORE_YIELD 500
#define TIME_BEFORE_YIELD 500
/*
/*
* D
i
namically reduce the display buffer
* D
y
namically reduce the display buffer
* size after a congestion.
* size after a congestion.
*/
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/Image.c
View file @
11b534ab
...
@@ -189,8 +189,8 @@ int nxagentImageReformat(char *base, int nbytes, int bpp, int order)
...
@@ -189,8 +189,8 @@ int nxagentImageReformat(char *base, int nbytes, int bpp, int order)
{
{
/*
/*
* This is used whenever we need to swap the image data.
* This is used whenever we need to swap the image data.
* If we got an image from a X server having a different
* If we got an image from a
n
X server having a different
* endian
ess, we will need to red
ormat the image to match
* endian
ness, we will need to ref
ormat the image to match
* our own image-order so that ProcGetImage can return
* our own image-order so that ProcGetImage can return
* the expected format to the client.
* the expected format to the client.
*/
*/
...
@@ -1157,9 +1157,9 @@ FIXME: Should use an unpack resource here.
...
@@ -1157,9 +1157,9 @@ FIXME: Should use an unpack resource here.
/*
/*
* We got the image data from the X client or
* We got the image data from the X client or
* from the frame-buffer with our own endianess.
* from the frame-buffer with our own endian
n
ess.
* Byte swap the image data if the display has
* Byte swap the image data if the display has
* a different endianess than our own.
* a different endian
n
ess than our own.
*/
*/
if
(
nxagentImageNormalize
(
plainImage
)
!=
0
)
if
(
nxagentImageNormalize
(
plainImage
)
!=
0
)
...
...
nx-X11/programs/Xserver/hw/nxagent/Image.h
View file @
11b534ab
...
@@ -84,7 +84,7 @@ void nxagentResetAlphaCache(void);
...
@@ -84,7 +84,7 @@ void nxagentResetAlphaCache(void);
/*
/*
* Byte swap the image if the display
* Byte swap the image if the display
* uses a different endianess.
* uses a different endian
n
ess.
*/
*/
#define nxagentImageNormalize(image) \
#define nxagentImageNormalize(image) \
...
...
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
11b534ab
...
@@ -212,7 +212,7 @@ INCLUDES = \
...
@@ -212,7 +212,7 @@ INCLUDES = \
# NXAGENT_GLYPHCACHE
# NXAGENT_GLYPHCACHE
# NXAGENT_GLYPHCACHE_SIZE Slots for glyph cache
# NXAGENT_GLYPHCACHE_SIZE Slots for glyph cache
# NXAGENT_SHAPE2 New shape code
# NXAGENT_SHAPE2 New shape code
# NXAGENT_FIXKEYS Force the release of pressed key when lo
o
sing focus
# NXAGENT_FIXKEYS Force the release of pressed key when losing focus
# NXAGENT_EXPOSURES Manage expose events
# NXAGENT_EXPOSURES Manage expose events
# NXAGENT_CLIPBOARD Enables clipboard cut and paste function between X servers.
# NXAGENT_CLIPBOARD Enables clipboard cut and paste function between X servers.
# NXAGENT_FONTEXCLUDE Exclude some specific font names (only "-ult1mo" at this moment).
# NXAGENT_FONTEXCLUDE Exclude some specific font names (only "-ult1mo" at this moment).
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
11b534ab
...
@@ -540,7 +540,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
...
@@ -540,7 +540,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
#if defined(DDXBEFORERESET)
#if defined(DDXBEFORERESET)
ddxBeforeReset
();
ddxBeforeReset
();
#endif
#endif
/* FIXME: maybe move the code upto the KillAllClients() call to ddxBeforeReset? */
/* FIXME: maybe move the code up
to the KillAllClients() call to ddxBeforeReset? */
if
((
dispatchException
&
DE_RESET
)
&&
if
((
dispatchException
&
DE_RESET
)
&&
(
serverGeneration
>
nxagentMaxAllowedResets
))
(
serverGeneration
>
nxagentMaxAllowedResets
))
{
{
...
...
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
View file @
11b534ab
...
@@ -568,7 +568,7 @@ ProcSendEvent(ClientPtr client)
...
@@ -568,7 +568,7 @@ ProcSendEvent(ClientPtr client)
return
Success
;
return
Success
;
/* If the input focus is PointerRootWin, send the event to where
/* If the input focus is PointerRootWin, send the event to where
the pointer is if possible, then perhaps prop
o
gate up to root. */
the pointer is if possible, then perhaps prop
a
gate up to root. */
if
(
inputFocus
==
PointerRootWin
)
if
(
inputFocus
==
PointerRootWin
)
inputFocus
=
ROOT
;
inputFocus
=
ROOT
;
...
...
nx-X11/programs/Xserver/hw/nxagent/NXresource.c
View file @
11b534ab
...
@@ -437,7 +437,7 @@ RestartLoop:
...
@@ -437,7 +437,7 @@ RestartLoop:
/*
/*
* It's not enough to check if the number of elements has
* It's not enough to check if the number of elements has
* changed, be
a
cause it could happen that the number of
* changed, because it could happen that the number of
* resources that have been added matches the number of
* resources that have been added matches the number of
* the freed ones.
* the freed ones.
* 'nxagentResChangedFlag' is set if a resource has been
* 'nxagentResChangedFlag' is set if a resource has been
...
@@ -521,7 +521,7 @@ RestartLoop:
...
@@ -521,7 +521,7 @@ RestartLoop:
/*
/*
* It's not enough to check if the number of elements has
* It's not enough to check if the number of elements has
* changed, be
a
cause it could happen that the number of
* changed, because it could happen that the number of
* resources that have been added matches the number of
* resources that have been added matches the number of
* the freed ones.
* the freed ones.
* 'nxagentResChangedFlag' is set if a resource has been
* 'nxagentResChangedFlag' is set if a resource has been
...
...
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
View file @
11b534ab
...
@@ -543,7 +543,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
...
@@ -543,7 +543,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
if
(
!
pParent
)
if
(
!
pParent
)
return
Success
;
return
Success
;
/* Figure out if the window should be moved. Doesnt
/* Figure out if the window should be moved. Doesn
'
t
make the changes to the window if event sent */
make the changes to the window if event sent */
#ifdef TEST
#ifdef TEST
...
@@ -769,7 +769,7 @@ ReparentWindow(register WindowPtr pWin, register WindowPtr pParent,
...
@@ -769,7 +769,7 @@ ReparentWindow(register WindowPtr pWin, register WindowPtr pParent,
if
(
pWin
->
prevSib
)
if
(
pWin
->
prevSib
)
pWin
->
prevSib
->
nextSib
=
pWin
->
nextSib
;
pWin
->
prevSib
->
nextSib
=
pWin
->
nextSib
;
/* insert at begining of pParent */
/* insert at begin
n
ing of pParent */
pWin
->
parent
=
pParent
;
pWin
->
parent
=
pParent
;
pPrev
=
RealChildHead
(
pParent
);
pPrev
=
RealChildHead
(
pParent
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Options.h
View file @
11b534ab
...
@@ -334,7 +334,7 @@ typedef struct _AgentOptions
...
@@ -334,7 +334,7 @@ typedef struct _AgentOptions
/*
/*
* If set, prevent the shadow session to
* If set, prevent the shadow session to
* interact with master diplay.
* interact with master di
s
play.
*/
*/
int
ViewOnly
;
int
ViewOnly
;
...
@@ -429,7 +429,7 @@ typedef struct _AgentOptions
...
@@ -429,7 +429,7 @@ typedef struct _AgentOptions
* we cannot rely on them because RandR and PanoramiX change their
* we cannot rely on them because RandR and PanoramiX change their
* values when trying to initialize. So we use this variable to
* values when trying to initialize. So we use this variable to
* save the user preference provided by the -/+(rr)xinerama parameter(s)
* save the user preference provided by the -/+(rr)xinerama parameter(s)
* before initalizing those extensions.
* before init
i
alizing those extensions.
*/
*/
int
Xinerama
;
int
Xinerama
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixels.h
View file @
11b534ab
...
@@ -111,10 +111,9 @@ while (0)
...
@@ -111,10 +111,9 @@ while (0)
nxagentCongestion > 4)
nxagentCongestion > 4)
/*
/*
FIXME: The condition checking for the render
FIXME: The condition checking for the render version is a workaround
version is a workaround implemented to
implemented to avoid problems with the render composite on
avoid problems with the render composi-
XFree86 remote server.
te on XFree86 remote server.
*/
*/
/*
/*
FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
11b534ab
...
@@ -1129,7 +1129,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
...
@@ -1129,7 +1129,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"nxagentCheckPixmapIntegrity: Pixmap at [%p] has been realized. "
fprintf
(
stderr
,
"nxagentCheckPixmapIntegrity: Pixmap at [%p] has been realized. "
"Now remote and frambuffer data are synchronized.
\n
"
,
(
void
*
)
pPixmap
);
"Now remote and fram
e
buffer data are synchronized.
\n
"
,
(
void
*
)
pPixmap
);
#endif
#endif
}
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
11b534ab
...
@@ -236,7 +236,7 @@ void nxagentSetScreenInfo(ScreenInfo *screenInfo)
...
@@ -236,7 +236,7 @@ void nxagentSetScreenInfo(ScreenInfo *screenInfo)
* server this stuff is done after having opened the
* server this stuff is done after having opened the
* real display as Xnest lets the screen reflect the
* real display as Xnest lets the screen reflect the
* order of the remote end. Agent will instead set
* order of the remote end. Agent will instead set
* the order according to local endianess and swap
* the order according to local endian
n
ess and swap
* data whenever it is appropriate.
* data whenever it is appropriate.
*
*
* From a standard implementation:
* From a standard implementation:
...
@@ -329,7 +329,7 @@ void nxagentMaximizeToFullScreen(ScreenPtr pScreen)
...
@@ -329,7 +329,7 @@ void nxagentMaximizeToFullScreen(ScreenPtr pScreen)
/*
/*
FIXME: We'll check for ReparentNotify and LeaveNotify events after XReparentWindow()
FIXME: We'll check for ReparentNotify and LeaveNotify events after XReparentWindow()
in order to avoid the session window is iconified.
in order to avoid the session window is iconified.
We could avoid the sess
s
ion window is iconified when a LeaveNotify event is received,
We could avoid the session window is iconified when a LeaveNotify event is received,
so this check would be unnecessary.
so this check would be unnecessary.
*/
*/
struct
timeval
timeout
;
struct
timeval
timeout
;
...
@@ -4012,7 +4012,7 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
...
@@ -4012,7 +4012,7 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
/*
/*
* Convert old RANDR 1.0 data (if any) to current structure. This
* Convert old RANDR 1.0 data (if any) to current structure. This
* is needed once at the first run of this function. If we don't
* is needed once at the first run of this function. If we don't
* do this here it will be done implicit
e
ly later and add mode(s) to
* do this here it will be done implicitly later and add mode(s) to
* our crtc(s)!
* our crtc(s)!
*/
*/
rrgetinfo
=
RRGetInfo
(
pScreen
,
FALSE
);
rrgetinfo
=
RRGetInfo
(
pScreen
,
FALSE
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Visual.c
View file @
11b534ab
...
@@ -141,7 +141,7 @@ Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth)
...
@@ -141,7 +141,7 @@ Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth)
/*
/*
* Create a fake 32 bits depth visual and
* Create a fake 32 bits depth visual and
* initialize it based on the endianess
* initialize it based on the endian
n
ess
* of the remote display.
* of the remote display.
*/
*/
...
@@ -152,7 +152,7 @@ void nxagentInitAlphaVisual(void)
...
@@ -152,7 +152,7 @@ void nxagentInitAlphaVisual(void)
/*
/*
* Color masks are referred to bits inside
* Color masks are referred to bits inside
* the pixel. This is independent from the
* the pixel. This is independent from the
* endianess.
* endian
n
ess.
*/
*/
nxagentAlphaVisual
.
red_mask
=
0x00ff0000
;
nxagentAlphaVisual
.
red_mask
=
0x00ff0000
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
11b534ab
...
@@ -1752,7 +1752,7 @@ Bool nxagentChangeWindowAttributes(pWin, mask)
...
@@ -1752,7 +1752,7 @@ Bool nxagentChangeWindowAttributes(pWin, mask)
}
}
/*
/*
* As we set this bit, w
h
e must change dix in
* As we set this bit, we must change dix in
* order not to perform PositionWindow and let
* order not to perform PositionWindow and let
* X move children windows for us.
* X move children windows for us.
*/
*/
...
@@ -2635,7 +2635,7 @@ void nxagentMapDefaultWindows(void)
...
@@ -2635,7 +2635,7 @@ void nxagentMapDefaultWindows(void)
Bool
nxagentDisconnectAllWindows
(
void
)
Bool
nxagentDisconnectAllWindows
(
void
)
{
{
Bool
succeded
=
True
;
Bool
succe
e
ded
=
True
;
int
i
;
int
i
;
WindowPtr
pWin
;
WindowPtr
pWin
;
...
@@ -2646,7 +2646,7 @@ Bool nxagentDisconnectAllWindows(void)
...
@@ -2646,7 +2646,7 @@ Bool nxagentDisconnectAllWindows(void)
for
(
i
=
0
;
i
<
screenInfo
.
numScreens
;
i
++
)
for
(
i
=
0
;
i
<
screenInfo
.
numScreens
;
i
++
)
{
{
pWin
=
screenInfo
.
screens
[
i
]
->
root
;
pWin
=
screenInfo
.
screens
[
i
]
->
root
;
nxagentTraverseWindow
(
pWin
,
nxagentDisconnectWindow
,
&
succeded
);
nxagentTraverseWindow
(
pWin
,
nxagentDisconnectWindow
,
&
succe
e
ded
);
nxagentDefaultWindows
[
i
]
=
None
;
nxagentDefaultWindows
[
i
]
=
None
;
}
}
...
@@ -2654,7 +2654,7 @@ Bool nxagentDisconnectAllWindows(void)
...
@@ -2654,7 +2654,7 @@ Bool nxagentDisconnectAllWindows(void)
fprintf
(
stderr
,
"nxagentDisconnectAllWindows: all windows disconnected
\n
"
);
fprintf
(
stderr
,
"nxagentDisconnectAllWindows: all windows disconnected
\n
"
);
#endif
#endif
return
succeded
;
return
succe
e
ded
;
}
}
/*
/*
...
@@ -3270,7 +3270,7 @@ static void nxagentReconfigureWindow(void * param0, XID param1, void * data_buff
...
@@ -3270,7 +3270,7 @@ static void nxagentReconfigureWindow(void * param0, XID param1, void * data_buff
}
}
/*
/*
XXX: This would break Motif menus.
XXX: This would break Motif menus.
If pWin is mapped but not realized, a followin UnmapWindow() wouldn't
If pWin is mapped but not realized, a followin
g
UnmapWindow() wouldn't
do anything, leaving this mapped window around. XMapWindow()
do anything, leaving this mapped window around. XMapWindow()
is called in nxagentRealizeWindow() and there it is enough.
is called in nxagentRealizeWindow() and there it is enough.
...
@@ -3387,7 +3387,7 @@ Bool nxagentCheckWindowIntegrity(WindowPtr pWin)
...
@@ -3387,7 +3387,7 @@ Bool nxagentCheckWindowIntegrity(WindowPtr pWin)
{
{
#ifdef WARNING
#ifdef WARNING
fprintf
(
stderr
,
"nxagentCheckWindowIntegrity: Window %p has been realized "
fprintf
(
stderr
,
"nxagentCheckWindowIntegrity: Window %p has been realized "
"now remote and frambuffer data are synchronized.
\n
"
,
(
void
*
)
pWin
);
"now remote and fram
e
buffer data are synchronized.
\n
"
,
(
void
*
)
pWin
);
#endif
#endif
}
}
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.c
View file @
11b534ab
...
@@ -501,7 +501,7 @@ int NXSetDisplayBuffer(Display *dpy, int size)
...
@@ -501,7 +501,7 @@ int NXSetDisplayBuffer(Display *dpy, int size)
/*
/*
* If set, the Popen() function in the X server
* If set, the Popen() function in the X server
* wil remove the LD_LIBRARY_PATH variable from
* wil
l
remove the LD_LIBRARY_PATH variable from
* the environment before calling the execl()
* the environment before calling the execl()
* function on the child process.
* function on the child process.
*/
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.h
View file @
11b534ab
...
@@ -103,7 +103,7 @@ extern int NXSetDisplayBuffer(
...
@@ -103,7 +103,7 @@ extern int NXSetDisplayBuffer(
/*
/*
* If set, the Popen() function in the X server
* If set, the Popen() function in the X server
* wil remove the LD_LIBRARY_PATH variable from
* wil
l
remove the LD_LIBRARY_PATH variable from
* the environment before calling the execl()
* the environment before calling the execl()
* function on the child process. The function
* function on the child process. The function
* returns the previous value.
* returns the previous value.
...
@@ -334,7 +334,7 @@ extern Status NXGetUnpackParameters(
...
@@ -334,7 +334,7 @@ extern Status NXGetUnpackParameters(
* shared memory blocks. A MIT-SHM compliant protocol is used
* shared memory blocks. A MIT-SHM compliant protocol is used
* between proxy and the real server, while a simplified
* between proxy and the real server, while a simplified
* version is used between the agent and the client proxy to
* version is used between the agent and the client proxy to
* accomodate both packed images and plain X bitmaps.
* accom
m
odate both packed images and plain X bitmaps.
*/
*/
extern
Status
NXGetShmemParameters
(
extern
Status
NXGetShmemParameters
(
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Png.c
View file @
11b534ab
...
@@ -258,7 +258,7 @@ char *PngCompressData(XImage *image, int *compressed_size)
...
@@ -258,7 +258,7 @@ char *PngCompressData(XImage *image, int *compressed_size)
/*
/*
* TODO: Be sure the padded bytes are cleaned.
* TODO: Be sure the padded bytes are cleaned.
* It would be better to set to zero the bytes
* It would be better to set to zero the bytes
* that are not al
l
igned to the word boundary
* that are not aligned to the word boundary
* at the end of the procedure.
* at the end of the procedure.
*/
*/
...
@@ -491,7 +491,7 @@ char *PngCompressData(XImage *image, int *compressed_size)
...
@@ -491,7 +491,7 @@ char *PngCompressData(XImage *image, int *compressed_size)
/*
/*
* TODO: Be sure the padded bytes are cleaned.
* TODO: Be sure the padded bytes are cleaned.
* It would be better to set to zero the bytes
* It would be better to set to zero the bytes
* that are not al
l
igned to the word boundary
* that are not aligned to the word boundary
* at the end of the procedure.
* at the end of the procedure.
*/
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Z.c
View file @
11b534ab
...
@@ -261,7 +261,7 @@ int ZInitEncoder(void)
...
@@ -261,7 +261,7 @@ int ZInitEncoder(void)
zStream
->
opaque
=
(
voidpf
)
0
;
zStream
->
opaque
=
(
voidpf
)
0
;
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"******ZInitEncoder: Initializing compressor with level [%d] and st
ar
tegy [%d].
\n
"
,
fprintf
(
stderr
,
"******ZInitEncoder: Initializing compressor with level [%d] and st
ra
tegy [%d].
\n
"
,
zCompressionLevel
,
zCompressionStrategy
);
zCompressionLevel
,
zCompressionStrategy
);
#endif
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
View file @
11b534ab
...
@@ -775,7 +775,7 @@ the text after the /; it is used to distinguish between instances of
...
@@ -775,7 +775,7 @@ the text after the /; it is used to distinguish between instances of
<action> ::= a | i | e
<action> ::= a | i | e
<string> ::= <dbl quoted string> | <single quoted string> | <unq
ou
ted string>
<string> ::= <dbl quoted string> | <single quoted string> | <unq
uo
ted string>
<dbl quoted string> ::= <space> " <not dqoute>* " <space>
<dbl quoted string> ::= <space> " <not dqoute>* " <space>
...
...
nxcomp/src/Agent.h
View file @
11b534ab
...
@@ -50,7 +50,7 @@ class Agent
...
@@ -50,7 +50,7 @@ class Agent
//
//
// Must be created by passing the fake descriptor that
// Must be created by passing the fake descriptor that
// will be used for simulating socket communication
// will be used for simulating socket communication
// betwen the agent and the proxy. I/O will take place
// betwe
e
n the agent and the proxy. I/O will take place
// by copying data to the agent's read and write buf-
// by copying data to the agent's read and write buf-
// fers.
// fers.
//
//
...
...
nxcomp/src/Children.cpp
View file @
11b534ab
...
@@ -893,7 +893,7 @@ int NXTransKeeper(int caches, int images, const char *root)
...
@@ -893,7 +893,7 @@ int NXTransKeeper(int caches, int images, const char *root)
}
}
//
//
// Take care of the persisten image cache.
// Take care of the persisten
t
image cache.
// Run a number of iterations and then exit,
// Run a number of iterations and then exit,
// so we can keep the memory consumption
// so we can keep the memory consumption
// low. The parent will check our exit code
// low. The parent will check our exit code
...
...
nxcomp/src/ClientChannel.cpp
View file @
11b534ab
...
@@ -3850,7 +3850,7 @@ int ClientChannel::handleWrite(const unsigned char *message, unsigned int length
...
@@ -3850,7 +3850,7 @@ int ClientChannel::handleWrite(const unsigned char *message, unsigned int length
//
//
// Use differential compression at startup and plain
// Use differential compression at startup and plain
// data compression later. Check X_ListFonts message
// data compression later. Check X_ListFonts message
// for an expla
i
nation.
// for an explanation.
//
//
MessageStore
*
messageStore
=
serverStore_
->
MessageStore
*
messageStore
=
serverStore_
->
...
@@ -5974,7 +5974,7 @@ int ClientChannel::handleRestart(T_sequence_mode mode, int resource)
...
@@ -5974,7 +5974,7 @@ int ClientChannel::handleRestart(T_sequence_mode mode, int resource)
// integer number (0-255) referred to as the 'resource' field.
// integer number (0-255) referred to as the 'resource' field.
//
//
// Before the proxy will be able to report the status of the
// Before the proxy will be able to report the status of the
// split, the agent will have to close the sequence by issu
e
ing
// split, the agent will have to close the sequence by issuing
// an end-split. The proxy will then report the result of the
// an end-split. The proxy will then report the result of the
// operation, so that the agent will have the option of suspend-
// operation, so that the agent will have the option of suspend-
// ing the client or marking the drawable as dirty and take
// ing the client or marking the drawable as dirty and take
...
...
nxcomp/src/Control.cpp
View file @
11b534ab
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
#define SHMEM_TIMEOUT 200
#define SHMEM_TIMEOUT 200
//
//
// Before closing down the proxy, wait for the
// Before closing down the proxy, wait for the
// given amount of miliseconds to let all the
// given amount of mil
l
iseconds to let all the
// running applications to close down their
// running applications to close down their
// connections.
// connections.
//
//
...
...
nxcomp/src/DecodeBuffer.cpp
View file @
11b534ab
...
@@ -476,7 +476,7 @@ const unsigned char *DecodeBuffer::decodeMemory(unsigned int numBytes)
...
@@ -476,7 +476,7 @@ const unsigned char *DecodeBuffer::decodeMemory(unsigned int numBytes)
//
//
// Force ourselves to a byte boundary.
// Force ourselves to a byte boundary.
// Is up to application to ensure data
// Is up to application to ensure data
// is word al
l
igned when needed.
// is word aligned when needed.
//
//
if
(
srcMask_
!=
0x80
)
if
(
srcMask_
!=
0x80
)
...
...
nxcomp/src/GenericReadBuffer.cpp
View file @
11b534ab
...
@@ -52,7 +52,7 @@ int GenericReadBuffer::locateMessage(const unsigned char *start,
...
@@ -52,7 +52,7 @@ int GenericReadBuffer::locateMessage(const unsigned char *start,
unsigned
int
&
trailerLength
)
unsigned
int
&
trailerLength
)
{
{
//
//
// We don't care about the endianess
// We don't care about the endian
n
ess
// in generic channels.
// in generic channels.
//
//
...
...
nxcomp/src/Keeper.cpp
View file @
11b534ab
...
@@ -100,7 +100,7 @@ File::File()
...
@@ -100,7 +100,7 @@ File::File()
//
//
// TODO: This class can leak industrial amounts of memory.
// TODO: This class can leak industrial amounts of memory.
// I'm 100% sure that the des
c
tructor is called and that
// I'm 100% sure that the destructor is called and that
// also the string pointed in the File structure is dele-
// also the string pointed in the File structure is dele-
// ted. Everything is logged, but still the memory is not
// ted. Everything is logged, but still the memory is not
// freed. This is less a problem on Windows, where the me-
// freed. This is less a problem on Windows, where the me-
...
...
nxcomp/src/Loop.cpp
View file @
11b534ab
...
@@ -751,7 +751,7 @@ static char sessionDir[DEFAULT_STRING_LENGTH] = { 0 };
...
@@ -751,7 +751,7 @@ static char sessionDir[DEFAULT_STRING_LENGTH] = { 0 };
//
//
// Log files for errors and statistics. Error log is
// Log files for errors and statistics. Error log is
// the place where we print also debug information
s
.
// the place where we print also debug information.
// Both files are closed, deleted and reopened as
// Both files are closed, deleted and reopened as
// their size exceed the limit set in control class.
// their size exceed the limit set in control class.
// The session log is not reopened, as it is used by
// The session log is not reopened, as it is used by
...
@@ -3100,7 +3100,7 @@ int InitBeforeNegotiation()
...
@@ -3100,7 +3100,7 @@ int InitBeforeNegotiation()
SetDescriptors
();
SetDescriptors
();
//
//
// Set local endianess.
// Set local endian
n
ess.
//
//
unsigned
int
test
=
1
;
unsigned
int
test
=
1
;
...
@@ -5664,7 +5664,7 @@ void HandleSignal(int signal)
...
@@ -5664,7 +5664,7 @@ void HandleSignal(int signal)
// if (agentFD[1] != -1)
// if (agentFD[1] != -1)
// {
// {
// cerr << "Info" << ": Received signal 'SIGPIPE'. "
// cerr << "Info" << ": Received signal 'SIGPIPE'. "
// << "Closing agent conection.\n";
// << "Closing agent con
n
ection.\n";
//
//
// shutdown(agentFD[1], SHUT_RDWR);
// shutdown(agentFD[1], SHUT_RDWR);
// }
// }
...
@@ -6636,7 +6636,7 @@ int ConnectToRemote(ChannelEndPoint &socketAddress)
...
@@ -6636,7 +6636,7 @@ int ConnectToRemote(ChannelEndPoint &socketAddress)
// Show an alert after 20 seconds and use the
// Show an alert after 20 seconds and use the
// same timeout to interrupt the connect. The
// same timeout to interrupt the connect. The
// retry timeout is incremental, starting from
// retry timeout is incremental, starting from
// 100 miliseconds up to 1 second.
// 100 mil
l
iseconds up to 1 second.
//
//
int
alertTimeout
=
20000
;
int
alertTimeout
=
20000
;
...
...
nxcomp/src/MD5.c
View file @
11b534ab
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
#include <string.h>
#include <string.h>
/*
/*
* Try to determine the CPU endianess
* Try to determine the CPU endian
n
ess
* at compile time.
* at compile time.
*/
*/
...
...
nxcomp/src/Proxy.h
View file @
11b534ab
...
@@ -184,7 +184,7 @@ class Proxy
...
@@ -184,7 +184,7 @@ class Proxy
static
const
int
TOKEN_TYPES
=
3
;
static
const
int
TOKEN_TYPES
=
3
;
//
//
// Leng
ht
of buffer we use to add our
// Leng
th
of buffer we use to add our
// control messages plus the length of
// control messages plus the length of
// the data frame.
// the data frame.
//
//
...
...
nxcomp/src/PutPackedImage.h
View file @
11b534ab
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
#define PUTPACKEDIMAGE_ENABLE_COMPRESS 0
#define PUTPACKEDIMAGE_ENABLE_COMPRESS 0
//
//
// We can't exceed
lenght
of 262144 bytes.
// We can't exceed
a length
of 262144 bytes.
//
//
#define PUTPACKEDIMAGE_DATA_LIMIT 262144 - 40
#define PUTPACKEDIMAGE_DATA_LIMIT 262144 - 40
...
...
nxcomp/src/Statistics.cpp
View file @
11b534ab
...
@@ -348,9 +348,9 @@ void Statistics::addCompressedBytes(unsigned int bytesIn, unsigned int bytesOut)
...
@@ -348,9 +348,9 @@ void Statistics::addCompressedBytes(unsigned int bytesIn, unsigned int bytesOut)
// receives the data from the upper layers. The reason
// receives the data from the upper layers. The reason
// is that data can be compressed by the stream com-
// is that data can be compressed by the stream com-
// pressor, so we can become aware of the new bitrate
// pressor, so we can become aware of the new bitrate
// only afer having flushed the ZLIB stream. This also
// only af
t
er having flushed the ZLIB stream. This also
// means that, to have a reliable estimat
e, we need to
// means that, to have a reliable estimat
ation, we need
// flush the link often.
//
to
flush the link often.
//
//
void
Statistics
::
updateBitrate
(
int
bytes
)
void
Statistics
::
updateBitrate
(
int
bytes
)
...
...
nxcompshad/src/Core.cpp
View file @
11b534ab
...
@@ -251,7 +251,7 @@ int CorePoller::isChanged(int (*checkIfInputCallback)(void *), void *arg, int *s
...
@@ -251,7 +251,7 @@ int CorePoller::isChanged(int (*checkIfInputCallback)(void *), void *arg, int *s
for
(;
curLine
<
(
int
)
height_
;
curLine
++
)
for
(;
curLine
<
(
int
)
height_
;
curLine
++
)
{
{
logDebug
(
"CorePoller::isChanged"
,
"Anal
i
zing line [%d] move backward [%d] status [%d] priority [%d]."
,
logDebug
(
"CorePoller::isChanged"
,
"Anal
y
zing line [%d] move backward [%d] status [%d] priority [%d]."
,
curLine
,
moveBackward
,
lineStatus_
[
curIlace
],
linePriority_
[
curLine
]);
curLine
,
moveBackward
,
lineStatus_
[
curIlace
],
linePriority_
[
curLine
]);
//
//
...
...
nxcompshad/src/Manager.cpp
View file @
11b534ab
...
@@ -239,7 +239,7 @@ void UpdateManager::handleInput()
...
@@ -239,7 +239,7 @@ void UpdateManager::handleInput()
}
}
catch
(
UpdaterClosing
u
)
catch
(
UpdaterClosing
u
)
{
{
logTest
(
"UpdateManager::handleInput"
,
"Ca
tched
exception UpdaterClosing()."
);
logTest
(
"UpdateManager::handleInput"
,
"Ca
ught
exception UpdaterClosing()."
);
removeUpdater
((
UpdaterHandle
)
updaterVector
[
i
]);
removeUpdater
((
UpdaterHandle
)
updaterVector
[
i
]);
...
...
nxcompshad/src/X11.cpp
View file @
11b534ab
...
@@ -212,7 +212,7 @@ char *Poller::getRect(XRectangle r)
...
@@ -212,7 +212,7 @@ char *Poller::getRect(XRectangle r)
{
{
logTrace
(
"Poller::getRect"
);
logTrace
(
"Poller::getRect"
);
logDebug
(
"Poller::getRect"
,
"Going to retrive rectangle [%d, %d, %d, %d]."
,
logDebug
(
"Poller::getRect"
,
"Going to retri
e
ve rectangle [%d, %d, %d, %d]."
,
r
.
x
,
r
.
y
,
r
.
width
,
r
.
height
);
r
.
x
,
r
.
y
,
r
.
width
,
r
.
height
);
if
(
shmExtension_
==
1
)
if
(
shmExtension_
==
1
)
...
@@ -1144,7 +1144,7 @@ SendKeycode:
...
@@ -1144,7 +1144,7 @@ SendKeycode:
//
//
// Use keysyms to translate keycodes across different
// Use keysyms to translate keycodes across different
// keyboard models. U
nuseful
when both keyboards have
// keyboard models. U
seless
when both keyboards have
// same keycodes (e.g. both are pc keyboards).
// same keycodes (e.g. both are pc keyboards).
//
//
...
...
nxproxy/src/Main.c
View file @
11b534ab
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
/* */
/* */
/* NX and NoMachine are trademarks of Medialogic S.p.A. */
/* NX and NoMachine are trademarks of Medialogic S.p.A. */
/* */
/* */
/* All rig
th
s reserved. */
/* All rig
ht
s reserved. */
/* */
/* */
/**************************************************************************/
/**************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment