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
d30ef034
Commit
d30ef034
authored
Oct 10, 2011
by
Reinhard Tartler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imported nxagent-3.4.0-3.tar.gz
Summary: Imported nxagent-3.4.0-3.tar.gz Keywords: Imported nxagent-3.4.0-3.tar.gz into Git repository
parent
25af86cd
Hide whitespace changes
Inline
Side-by-side
Showing
161 changed files
with
382 additions
and
1866 deletions
+382
-1866
Agent.h
nx-X11/programs/Xserver/hw/nxagent/Agent.h
+1
-1
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+3
-16
Args.h
nx-X11/programs/Xserver/hw/nxagent/Args.h
+1
-1
Atoms.c
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+14
-16
Atoms.h
nx-X11/programs/Xserver/hw/nxagent/Atoms.h
+2
-2
Binder.c
nx-X11/programs/Xserver/hw/nxagent/Binder.c
+1
-1
Binder.h
nx-X11/programs/Xserver/hw/nxagent/Binder.h
+1
-1
CHANGELOG
nx-X11/programs/Xserver/hw/nxagent/CHANGELOG
+0
-165
Client.c
nx-X11/programs/Xserver/hw/nxagent/Client.c
+1
-1
Client.h
nx-X11/programs/Xserver/hw/nxagent/Client.h
+1
-1
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+1
-1
Clipboard.h
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
+1
-1
Colormap.c
nx-X11/programs/Xserver/hw/nxagent/Colormap.c
+1
-1
Colormap.h
nx-X11/programs/Xserver/hw/nxagent/Colormap.h
+1
-1
Composite.c
nx-X11/programs/Xserver/hw/nxagent/Composite.c
+1
-1
Composite.h
nx-X11/programs/Xserver/hw/nxagent/Composite.h
+1
-1
Cursor.c
nx-X11/programs/Xserver/hw/nxagent/Cursor.c
+1
-1
Cursor.h
nx-X11/programs/Xserver/hw/nxagent/Cursor.h
+1
-1
Dialog.c
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
+1
-1
Dialog.h
nx-X11/programs/Xserver/hw/nxagent/Dialog.h
+1
-1
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+1
-1
Display.h
nx-X11/programs/Xserver/hw/nxagent/Display.h
+1
-1
Drawable.c
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+1
-1
Drawable.h
nx-X11/programs/Xserver/hw/nxagent/Drawable.h
+1
-1
Error.c
nx-X11/programs/Xserver/hw/nxagent/Error.c
+1
-1
Error.h
nx-X11/programs/Xserver/hw/nxagent/Error.h
+1
-1
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+35
-568
Events.h
nx-X11/programs/Xserver/hw/nxagent/Events.h
+1
-7
Extensions.c
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
+1
-1
Extensions.h
nx-X11/programs/Xserver/hw/nxagent/Extensions.h
+1
-1
Font.c
nx-X11/programs/Xserver/hw/nxagent/Font.c
+1
-1
Font.h
nx-X11/programs/Xserver/hw/nxagent/Font.h
+1
-1
GC.c
nx-X11/programs/Xserver/hw/nxagent/GC.c
+1
-1
GCOps.c
nx-X11/programs/Xserver/hw/nxagent/GCOps.c
+1
-1
GCOps.h
nx-X11/programs/Xserver/hw/nxagent/GCOps.h
+1
-1
GCs.h
nx-X11/programs/Xserver/hw/nxagent/GCs.h
+1
-1
Handlers.c
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+2
-3
Handlers.h
nx-X11/programs/Xserver/hw/nxagent/Handlers.h
+1
-1
Holder.c
nx-X11/programs/Xserver/hw/nxagent/Holder.c
+1
-1
Holder.h
nx-X11/programs/Xserver/hw/nxagent/Holder.h
+1
-1
Icons.h
nx-X11/programs/Xserver/hw/nxagent/Icons.h
+1
-1
Image.c
nx-X11/programs/Xserver/hw/nxagent/Image.c
+1
-1
Image.h
nx-X11/programs/Xserver/hw/nxagent/Image.h
+1
-1
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+1
-2
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+2
-2
Init.h
nx-X11/programs/Xserver/hw/nxagent/Init.h
+1
-1
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+1
-1
Keyboard.h
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
+1
-1
Keystroke.c
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+2
-76
Keystroke.h
nx-X11/programs/Xserver/hw/nxagent/Keystroke.h
+1
-1
LICENSE
nx-X11/programs/Xserver/hw/nxagent/LICENSE
+1
-1
Literals.h
nx-X11/programs/Xserver/hw/nxagent/Literals.h
+1
-1
Millis.c
nx-X11/programs/Xserver/hw/nxagent/Millis.c
+1
-1
Millis.h
nx-X11/programs/Xserver/hw/nxagent/Millis.h
+1
-1
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+1
-1
NXdispatch.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c.NX.original
+1
-1
NXdixfonts.c
nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
+1
-1
NXdixfonts.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c.NX.original
+1
-1
NXevents.c
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+1
-1
NXevents.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXevents.c.NX.original
+1
-1
NXextension.c
nx-X11/programs/Xserver/hw/nxagent/NXextension.c
+1
-1
NXextension.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXextension.c.NX.original
+1
-1
NXglyph.c
nx-X11/programs/Xserver/hw/nxagent/NXglyph.c
+1
-1
NXglyph.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXglyph.c.NX.original
+1
-1
NXglyphcurs.c
nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c
+1
-1
NXglyphcurs.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c.NX.original
+1
-1
NXglyphstr.h
nx-X11/programs/Xserver/hw/nxagent/NXglyphstr.h
+1
-1
NXglyphstr.h.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXglyphstr.h.NX.original
+1
-1
NXmiglyph.c
nx-X11/programs/Xserver/hw/nxagent/NXmiglyph.c
+1
-1
NXmiglyph.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXmiglyph.c.NX.original
+1
-1
NXpicture.c
nx-X11/programs/Xserver/hw/nxagent/NXpicture.c
+1
-1
NXpicture.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXpicture.c.NX.original
+1
-1
NXpicturestr.h
nx-X11/programs/Xserver/hw/nxagent/NXpicturestr.h
+1
-1
NXpicturestr.h.NX.original
...11/programs/Xserver/hw/nxagent/NXpicturestr.h.NX.original
+1
-1
NXproperty.c
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
+1
-1
NXproperty.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c.NX.original
+1
-1
NXrandr.c
nx-X11/programs/Xserver/hw/nxagent/NXrandr.c
+1
-1
NXrandr.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXrandr.c.NX.original
+1
-1
NXrender.c
nx-X11/programs/Xserver/hw/nxagent/NXrender.c
+1
-1
NXrender.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXrender.c.NX.original
+1
-1
NXwindow.c
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
+1
-1
NXwindow.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c.NX.original
+1
-1
NXxrandr.c
nx-X11/programs/Xserver/hw/nxagent/NXxrandr.c
+1
-1
NXxrandr.h
nx-X11/programs/Xserver/hw/nxagent/NXxrandr.h
+1
-1
NXxrandrint.h
nx-X11/programs/Xserver/hw/nxagent/NXxrandrint.h
+1
-1
Options.c
nx-X11/programs/Xserver/hw/nxagent/Options.c
+1
-7
Options.h
nx-X11/programs/Xserver/hw/nxagent/Options.h
+1
-11
Pixels.c
nx-X11/programs/Xserver/hw/nxagent/Pixels.c
+1
-1
Pixels.h
nx-X11/programs/Xserver/hw/nxagent/Pixels.h
+1
-19
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+1
-1
Pixmaps.h
nx-X11/programs/Xserver/hw/nxagent/Pixmaps.h
+1
-1
Pointer.c
nx-X11/programs/Xserver/hw/nxagent/Pointer.c
+1
-35
Pointer.h
nx-X11/programs/Xserver/hw/nxagent/Pointer.h
+1
-10
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+1
-5
Reconnect.h
nx-X11/programs/Xserver/hw/nxagent/Reconnect.h
+1
-1
Render.c
nx-X11/programs/Xserver/hw/nxagent/Render.c
+22
-271
Render.h
nx-X11/programs/Xserver/hw/nxagent/Render.h
+1
-3
Rootless.c
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
+11
-88
Rootless.h
nx-X11/programs/Xserver/hw/nxagent/Rootless.h
+1
-1
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+100
-30
Screen.h
nx-X11/programs/Xserver/hw/nxagent/Screen.h
+1
-5
Splash.c
nx-X11/programs/Xserver/hw/nxagent/Splash.c
+1
-1
Splash.h
nx-X11/programs/Xserver/hw/nxagent/Splash.h
+1
-1
Split.c
nx-X11/programs/Xserver/hw/nxagent/Split.c
+1
-1
Split.h
nx-X11/programs/Xserver/hw/nxagent/Split.h
+1
-1
TestExt.c
nx-X11/programs/Xserver/hw/nxagent/TestExt.c
+1
-1
Trap.c
nx-X11/programs/Xserver/hw/nxagent/Trap.c
+1
-1
Trap.h
nx-X11/programs/Xserver/hw/nxagent/Trap.h
+1
-1
Utils.h
nx-X11/programs/Xserver/hw/nxagent/Utils.h
+1
-1
Visual.c
nx-X11/programs/Xserver/hw/nxagent/Visual.c
+1
-1
Visual.h
nx-X11/programs/Xserver/hw/nxagent/Visual.h
+1
-1
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+10
-142
Windows.h
nx-X11/programs/Xserver/hw/nxagent/Windows.h
+1
-3
NXdamage.c
nx-X11/programs/Xserver/hw/nxagent/X/NXdamage.c
+1
-1
NXdamage.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXdamage.c.NX.original
+1
-1
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c
+12
-16
NXdispatch.c.NX.original
...11/programs/Xserver/hw/nxagent/X/NXdispatch.c.NX.original
+12
-16
NXdixfonts.c
nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c
+1
-1
NXdixfonts.c.NX.original
...11/programs/Xserver/hw/nxagent/X/NXdixfonts.c.NX.original
+1
-1
NXevents.c
nx-X11/programs/Xserver/hw/nxagent/X/NXevents.c
+1
-1
NXevents.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXevents.c.NX.original
+1
-1
NXextension.c
nx-X11/programs/Xserver/hw/nxagent/X/NXextension.c
+1
-1
NXextension.c.NX.original
...1/programs/Xserver/hw/nxagent/X/NXextension.c.NX.original
+1
-1
NXglxext.c
nx-X11/programs/Xserver/hw/nxagent/X/NXglxext.c
+1
-1
NXglxext.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXglxext.c.NX.original
+1
-1
NXglyph.c
nx-X11/programs/Xserver/hw/nxagent/X/NXglyph.c
+1
-1
NXglyph.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXglyph.c.NX.original
+1
-1
NXglyphcurs.c
nx-X11/programs/Xserver/hw/nxagent/X/NXglyphcurs.c
+1
-1
NXglyphcurs.c.NX.original
...1/programs/Xserver/hw/nxagent/X/NXglyphcurs.c.NX.original
+1
-1
NXglyphstr.h
nx-X11/programs/Xserver/hw/nxagent/X/NXglyphstr.h
+1
-1
NXglyphstr.h.NX.original
...11/programs/Xserver/hw/nxagent/X/NXglyphstr.h.NX.original
+1
-1
NXmiexpose.c
nx-X11/programs/Xserver/hw/nxagent/X/NXmiexpose.c
+1
-1
NXmiexpose.c.NX.original
...11/programs/Xserver/hw/nxagent/X/NXmiexpose.c.NX.original
+1
-1
NXmiglyph.c
nx-X11/programs/Xserver/hw/nxagent/X/NXmiglyph.c
+1
-1
NXmiglyph.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXmiglyph.c.NX.original
+1
-1
NXmitrap.c
nx-X11/programs/Xserver/hw/nxagent/X/NXmitrap.c
+1
-1
NXmitrap.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXmitrap.c.NX.original
+1
-1
NXmiwindow.c
nx-X11/programs/Xserver/hw/nxagent/X/NXmiwindow.c
+1
-1
NXmiwindow.c.NX.original
...11/programs/Xserver/hw/nxagent/X/NXmiwindow.c.NX.original
+1
-1
NXpicture.c
nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c
+2
-52
NXpicture.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c.NX.original
+2
-52
NXpicturestr.h
nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h
+1
-1
NXpicturestr.h.NX.original
.../programs/Xserver/hw/nxagent/X/NXpicturestr.h.NX.original
+1
-1
NXproperty.c
nx-X11/programs/Xserver/hw/nxagent/X/NXproperty.c
+1
-1
NXproperty.c.NX.original
...11/programs/Xserver/hw/nxagent/X/NXproperty.c.NX.original
+1
-1
NXrandr.c
nx-X11/programs/Xserver/hw/nxagent/X/NXrandr.c
+1
-1
NXrandr.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXrandr.c.NX.original
+1
-1
NXrender.c
nx-X11/programs/Xserver/hw/nxagent/X/NXrender.c
+4
-56
NXrender.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXrender.c.NX.original
+4
-56
NXresource.c
nx-X11/programs/Xserver/hw/nxagent/X/NXresource.c
+1
-1
NXresource.c.NX.original
...11/programs/Xserver/hw/nxagent/X/NXresource.c.NX.original
+1
-1
NXshm.c
nx-X11/programs/Xserver/hw/nxagent/X/NXshm.c
+1
-1
NXshm.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXshm.c.NX.original
+1
-1
NXwindow.c
nx-X11/programs/Xserver/hw/nxagent/X/NXwindow.c
+1
-1
NXwindow.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXwindow.c.NX.original
+1
-1
NXxvdisp.c
nx-X11/programs/Xserver/hw/nxagent/X/NXxvdisp.c
+1
-1
NXxvdisp.c.NX.original
nx-X11/programs/Xserver/hw/nxagent/X/NXxvdisp.c.NX.original
+1
-1
nxagent.xpm
nx-X11/programs/Xserver/hw/nxagent/nxagent.xpm
+1
-1
nxmissing.xpm
nx-X11/programs/Xserver/hw/nxagent/nxmissing.xpm
+1
-1
os2Stub.c
nx-X11/programs/Xserver/hw/nxagent/os2Stub.c
+1
-1
screensaver
nx-X11/programs/Xserver/hw/nxagent/screensaver
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Agent.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -562,15 +562,11 @@ int ddxProcessArgument(int argc, char *argv[], int i)
if
(
!
strcmp
(
argv
[
i
],
"fullscreen"
))
{
nxagentChangeOption
(
Fullscreen
,
True
);
nxagentChangeOption
(
AllScreens
,
True
);
}
else
if
(
!
strcmp
(
argv
[
i
],
"ipaq"
))
{
nxagentChangeOption
(
Fullscreen
,
True
);
nxagentChangeOption
(
AllScreens
,
True
);
nxagentIpaq
=
True
;
}
else
...
...
@@ -1075,14 +1071,10 @@ static void nxagentParseOptions(char *name, char *value)
else
if
(
!
strcmp
(
value
,
"1"
))
{
nxagentChangeOption
(
Fullscreen
,
True
);
nxagentChangeOption
(
AllScreens
,
True
);
}
else
if
(
!
strcmp
(
value
,
"0"
))
{
nxagentChangeOption
(
Fullscreen
,
False
);
nxagentChangeOption
(
AllScreens
,
False
);
}
else
{
...
...
@@ -1216,7 +1208,7 @@ static void nxagentParseOptions(char *name, char *value)
{
nxagentChangeOption
(
ClientOs
,
ClientOsSolaris
);
}
else
if
(
strcmp
(
value
,
"mac
osx
"
)
==
0
)
else
if
(
strcmp
(
value
,
"mac"
)
==
0
)
{
nxagentChangeOption
(
ClientOs
,
ClientOsMac
);
}
...
...
@@ -1520,7 +1512,7 @@ N/A
int
splitMode
=
0
;
int
splitSize
=
0
;
unsigned
int
packMethod
=
PACK_NONE
;
unsigned
int
packMethod
=
PACK_NONE
;
unsigned
int
packQuality
=
9
;
int
dataLevel
=
0
;
...
...
@@ -1688,11 +1680,6 @@ N/A
nxagentChangeOption
(
Fullscreen
,
False
);
}
if
(
nxagentOption
(
AllScreens
)
==
UNDEFINED
)
{
nxagentChangeOption
(
AllScreens
,
False
);
}
if
(
nxagentOption
(
Binder
)
==
UNDEFINED
)
{
nxagentChangeOption
(
Binder
,
False
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Args.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -66,21 +66,19 @@ Atom nxagentAtoms[NXAGENT_NUMBER_OF_ATOMS];
static
char
*
nxagentAtomNames
[
NXAGENT_NUMBER_OF_ATOMS
+
1
]
=
{
"NX_IDENTITY"
,
/* 0 */
"WM_PROTOCOLS"
,
/* 1 */
"WM_DELETE_WINDOW"
,
/* 2 */
"WM_NX_READY"
,
/* 3 */
"MCOPGLOBALS"
,
/* 4 */
"NX_CUT_BUFFER_SERVER"
,
/* 5 */
"TARGETS"
,
/* 6 */
"TEXT"
,
/* 7 */
"NX_AGENT_SIGNATURE"
,
/* 8 */
"NXDARWIN"
,
/* 9 */
"CLIPBOARD"
,
/* 10 */
"TIMESTAMP"
,
/* 11 */
"UTF8_STRING"
,
/* 12 */
"_NET_WM_STATE"
,
/* 13 */
"_NET_WM_STATE_FULLSCREEN"
,
/* 14 */
"NX_IDENTITY"
,
/* 0 */
"WM_PROTOCOLS"
,
/* 1 */
"WM_DELETE_WINDOW"
,
/* 2 */
"WM_NX_READY"
,
/* 3 */
"MCOPGLOBALS"
,
/* 4 */
"NX_CUT_BUFFER_SERVER"
,
/* 5 */
"TARGETS"
,
/* 6 */
"TEXT"
,
/* 7 */
"NX_AGENT_SIGNATURE"
,
/* 8 */
"NXDARWIN"
,
/* 9 */
"CLIPBOARD"
,
/* 10 */
"TIMESTAMP"
,
/* 11 */
"UTF8_STRING"
,
/* 12 */
NULL
,
NULL
};
...
...
nx-X11/programs/Xserver/hw/nxagent/Atoms.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -22,7 +22,7 @@
#include "../../include/window.h"
#include "screenint.h"
#define NXAGENT_NUMBER_OF_ATOMS 1
6
#define NXAGENT_NUMBER_OF_ATOMS 1
4
extern
Atom
nxagentAtoms
[
NXAGENT_NUMBER_OF_ATOMS
];
...
...
nx-X11/programs/Xserver/hw/nxagent/Binder.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Binder.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/CHANGELOG
View file @
d30ef034
ChangeLog:
nxagent-3.4.0-16
- Updated copyright to year 2011.
nxagent-3.4.0-15
- Added reference to fixed TR11H02405.
nxagent-3.4.0-14
- Reverted fix for TR03H02335 implemented in nxagent-3.4.0-6. The
emulation of right click by Control key + left click introduces
issues for some applications changing the reaction to the left click
depending on the state of Control key. Issue reported in TR03H02335
affects Apple laptop touchpads having a single button acting as
left button: on those devices the right button can be emulated by
a double-fingered tap (using two fingertips simultaneously).
nxagent-3.4.0-13
- Fixed TR12H02414. Exported property must be split if ChangeProperty
request exceeds 262140 bytes.
- Reset AllScreens option at reconnection time if full screen mode
have to be automatically turned off.
nxagent-3.4.0-12
- If one of the two full screen modes is active ('one screen' or 'all
screens') both keystrokes Ctrl-Alt-F and Ctrl-Alt-Shift-F change the
mode back to 'windowed'.
- Fixed TR11H02405. XRenderFreePicture is called only for pictures
that were actually created on the X server side.
- Ctrl+Alt+f switch fullscreen to all monitors, while Ctrl+Alt+Shift+f
does it to one monitor only.
- If the fullscreen option is enabled at the startup, session starts
in the fullscreen mode on all monitors.
- Added a call to XReparentWindow in the nxagentSwitchAllScreens().
- Corrected focus and grab when switching to fullscreen on
all monitors.
- Removed a compile warning e deleted some unused variables.
- Removed nxagentPointerAndKeyboardGrabbed variable.
- Use the override redirect attribute to switch to fullscreen to all
monitors instead of send _NET_WM_FULLSCREEN_MONITORS hint to the WM.
- Added nxagentMinimizeFromFullScreen(), nxagentMaximizeToFullScreen()
and nxagentCreateIconWindow().
- Removed check on EnterNotify to grab the keyboard in fullscreen
mode not only if mode is 'NotifyNormal'.
nxagent-3.4.0-11
- Corrected switching between viewport mode and resize mode.
- Fixed TR04H02340. Keycode is correctly translated in shadow sessions
also if the remote X display is using evdev.
nxagent-3.4.0-10
- Handled XGrabKeyboard() return value.
- Fixed TR10D01512. NumLock and CapsLock keys are now synchronized
between local and remote.
nxagent-3.4.0-9
- Fixed TR06H02362. No icon was swown in the task bar.
- Fixed keyboard grab in fullscreen mode.
- Fixed compiler warnings.
nxagent-3.4.0-8
- Grab the keyboard in fullscreen mode on EnterNotify only if mode is
'NotifyNormal'.
- Yield control in the dispatch loop in case we stop the smart sche-
duler timer while waiting for a reply from the remote display.
nxagent-3.4.0-7
- Fixed TR08D01478. The communication with the compiz window manager
by means of the _NET_WM_PING property was not handled properly.
- Fixed a type mismatch in XKB events on 64 bit platforms.
- Moved grab/ungrab keyboard from focus in/out event to enter/leave
notify event.
- Removed nxagentIconWindow because it's not longer used.
nxagent-3.4.0-6
- Fixed TR09F02102. Problem was with pointer buttons map.
- Fixed TR02H02327. Some KeyRelease events was discarded.
- Fixed up Num and Caps locks.
- Fixed TR03H02335. Emulated right mouse button for Mac clients.
- Added utilities to print info about internal and remote windows.
- Fixed TR01F01995. Solved a picture resource leak by destroying remo-
te pictures only when their reference counter returns to zero.
- Fixed TR04H02337. Errors occurred because pictures with no drawable
were handled badly.
- Implemented handling nxagent's private for gradient pictures and so-
lid fill picture.
- Fixed BadMatch condition check in function ProcRenderComposite.
- Fixed nxagentComposite() to handle situations with source picture
drawable pointing to NULL.
- Implemented render acceleration for requests: CreateSolidFill,
CreateLinearGradient, CreateRadialGradient, CreateConicalGradient.
- Fixed TR03G02196. Dialogs are shown to the fore when the NX session
is in fullscreen mode.
- Changed mechanism to switch to fullscreen mode. Now the override
redirect attribute is no longer used and _NET_WM_STATE_FULLSCREEN
hint is sent to the WM.
nxagent-3.4.0-5
- Updated copyright to year 2010.
nxagent-3.4.0-4
- Fixed TR07F02090. Now XDMCP sessions start without problems.
- Fixed TR08G02259. Corrected window border granularity of rootless
session at reconnection on 64 bit platforms.
- Fixed TR11G02290. Forcing null timeout with queued events only if
display connection is up. This prevents the flood of session log.
- Fixed TR10G02287. Now QueryTree's loop is aborted in case of failure
and session log isn't filled anymore with repeated warning messages.
- Fixed TR01G02154. Corrected window placement when switching between
fullscreen and windowed mode.
- Fixed TR09G02276. Now the agent does not receive unwanted characters
while interacting with the local window manager.
- Implemented FR02G02174. Added ability to do large screen pans in
viewport mode through key combination Ctrl+Alt+Shift+Arrow.
- Corrected parsing of the 'client' option when the client OS is Mac.
nxagent-3.4.0-3
- Fixed TR09G02271. The array containing the font name fields was not
...
...
nx-X11/programs/Xserver/hw/nxagent/Client.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Client.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Colormap.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Colormap.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Composite.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Composite.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Cursor.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Cursor.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Dialog.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Display.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Drawable.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Error.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Error.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -76,9 +76,7 @@
#include "input.h"
#endif
#define Time XlibXID
#include "XKBlib.h"
#undef Time
#define GC XlibGC
#define Font XlibFont
...
...
@@ -221,16 +219,6 @@ static void nxagentForwardRemoteExpose(void);
static
int
nxagentClipAndSendExpose
(
WindowPtr
pWin
,
pointer
ptr
);
/*
* This is from NXproperty.c.
*/
int
GetWindowProperty
(
WindowPtr
pWin
,
Atom
property
,
long
longOffset
,
long
longLength
,
Bool
delete
,
Atom
type
,
Atom
*
actualType
,
int
*
format
,
unsigned
long
*
nItems
,
unsigned
long
*
bytesAfter
,
unsigned
char
**
propData
);
/*
* Associate a resource to a drawable and
* store the region affected by the split
* operation.
...
...
@@ -286,280 +274,6 @@ void ProcessInputEvents()
mieqProcessInputEvents
();
}
#ifdef DEBUG_TREE
/*
* Print ID and name of window.
*/
void
nxagentRemoteWindowID
(
Window
window
,
Bool
newline
)
{
#ifdef NO_I18N
char
*
winName
;
#else
XTextProperty
tp
;
#endif
fprintf
(
stderr
,
"0x%lx"
,
window
);
if
(
!
window
)
{
fprintf
(
stderr
,
" (none) "
);
}
else
{
if
(
window
==
DefaultRootWindow
(
nxagentDisplay
))
{
fprintf
(
stderr
,
" (the root window) "
);
}
#ifdef NO_I18N
if
(
!
XFetchName
(
nxagentDisplay
,
window
,
&
winName
))
{
fprintf
(
stderr
,
" (has no name) "
);
}
else
if
(
winName
)
{
fprintf
(
stderr
,
"
\"
%s
\"
"
,
winName
);
XFree
(
winName
);
}
#else
if
(
XGetWMName
(
nxagentDisplay
,
window
,
&
tp
)
!=
0
)
{
fprintf
(
stderr
,
" (has no name) "
);
}
else
if
(
tp
.
nitems
>
0
)
{
int
count
=
0
;
int
i
,
ret
;
char
**
list
=
NULL
;
fprintf
(
stderr
,
"
\"
"
);
ret
=
XmbTextPropertyToTextList
(
nxagentDisplay
,
&
tp
,
&
list
,
&
count
);
if
((
ret
==
Success
||
ret
>
0
)
&&
list
!=
NULL
)
{
for
(
i
=
0
;
i
<
count
;
i
++
)
{
fprintf
(
stderr
,
"%s"
,
list
[
i
]);
}
XFreeStringList
(
list
);
}
else
{
fprintf
(
stderr
,
"%s"
,
tp
.
value
);
}
fprintf
(
stderr
,
"
\"
"
);
}
#endif
else
{
fprintf
(
stderr
,
" (has no name) "
);
}
}
if
(
newline
==
TRUE
)
{
fprintf
(
stderr
,
"
\n
"
);
}
return
;
}
/*
* Print info about remote window.
*/
void
nxagentRemoteWindowInfo
(
Window
win
,
int
indent
,
Bool
newLine
)
{
XWindowAttributes
attributes
;
int
i
;
if
(
XGetWindowAttributes
(
nxagentDisplay
,
win
,
&
attributes
)
==
0
)
{
return
;
}
for
(
i
=
0
;
i
<
indent
;
i
++
)
{
fprintf
(
stderr
,
" "
);
}
fprintf
(
stderr
,
"x=%d y=%d width=%d height=%d class=%s map_state=%s "
"override_redirect=%s
\n
"
,
attributes
.
x
,
attributes
.
y
,
attributes
.
width
,
attributes
.
height
,
(
attributes
.
class
==
0
)
?
"InputOutput"
:
"InputOnly"
,
(
attributes
.
map_state
==
0
)
?
"IsUnmapped"
:
(
attributes
.
map_state
==
1
?
"IsUnviewable"
:
"IsViewable"
),
(
attributes
.
override_redirect
==
0
)
?
"No"
:
"Yes"
);
if
(
newLine
==
TRUE
)
{
fprintf
(
stderr
,
"
\n
"
);
}
}
/*
* Walk remote windows tree.
*/
void
nxagentRemoteWindowsTree
(
Window
window
,
int
level
)
{
int
i
,
j
;
Window
rootWin
,
parentWin
;
unsigned
int
numChildren
;
Window
*
childList
;
if
(
!
XQueryTree
(
nxagentDisplay
,
window
,
&
rootWin
,
&
parentWin
,
&
childList
,
&
numChildren
))
{
fprintf
(
stderr
,
"nxagentRemoteWindowsTree - XQueryTree failed.
\n
"
);
return
;
}
if
(
level
==
0
)
{
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
" Root Window ID: "
);
nxagentRemoteWindowID
(
rootWin
,
TRUE
);
fprintf
(
stderr
,
" Parent window ID: "
);
nxagentRemoteWindowID
(
parentWin
,
TRUE
);
}
if
(
level
==
0
||
numChildren
>
0
)
{
fprintf
(
stderr
,
" "
);
for
(
j
=
0
;
j
<
level
;
j
++
)
{
fprintf
(
stderr
,
" "
);
}
fprintf
(
stderr
,
"%d child%s%s
\n
"
,
numChildren
,
(
numChildren
==
1
)
?
""
:
"ren"
,
(
numChildren
==
1
)
?
":"
:
"."
);
}
for
(
i
=
(
int
)
numChildren
-
1
;
i
>=
0
;
i
--
)
{
fprintf
(
stderr
,
" "
);
for
(
j
=
0
;
j
<
level
;
j
++
)
{
fprintf
(
stderr
,
" "
);
}
nxagentRemoteWindowID
(
childList
[
i
],
TRUE
);
nxagentRemoteWindowInfo
(
childList
[
i
],
(
level
*
5
)
+
6
,
TRUE
);
nxagentRemoteWindowsTree
(
childList
[
i
],
level
+
1
);
}
if
(
childList
)
{
XFree
((
char
*
)
childList
);
}
}
/*
* Print info about internal window.
*/
void
nxagentInternalWindowInfo
(
WindowPtr
pWin
,
int
indent
,
Bool
newLine
)
{
int
i
;
int
result
;
unsigned
long
ulReturnItems
;
unsigned
long
ulReturnBytesLeft
;
Atom
atomReturnType
;
int
iReturnFormat
;
unsigned
char
*
pszReturnData
=
NULL
;
fprintf
(
stderr
,
"Window ID=[0x%lx] Remote ID=[0x%lx] "
,
pWin
->
drawable
.
id
,
nxagentWindow
(
pWin
));
result
=
GetWindowProperty
(
pWin
,
MakeAtom
(
"WM_NAME"
,
7
,
False
)
,
0
,
sizeof
(
CARD32
),
False
,
AnyPropertyType
,
&
atomReturnType
,
&
iReturnFormat
,
&
ulReturnItems
,
&
ulReturnBytesLeft
,
&
pszReturnData
);
fprintf
(
stderr
,
"Name: "
);
if
(
result
==
Success
&&
pszReturnData
!=
NULL
)
{
pszReturnData
[
ulReturnItems
]
=
'\0'
;
fprintf
(
stderr
,
"
\"
%s
\"\n
"
,
(
char
*
)
pszReturnData
);
}
else
{
fprintf
(
stderr
,
"%s
\n
"
,
"( has no name )"
);
}
for
(
i
=
0
;
i
<
indent
;
i
++
)
{
fprintf
(
stderr
,
" "
);
}
fprintf
(
stderr
,
"x=%d y=%d width=%d height=%d class=%s map_state=%s "
"override_redirect=%s"
,
pWin
->
drawable
.
x
,
pWin
->
drawable
.
y
,
pWin
->
drawable
.
width
,
pWin
->
drawable
.
height
,
(
pWin
->
drawable
.
class
==
0
)
?
"InputOutput"
:
"InputOnly"
,
(
pWin
->
mapped
==
0
)
?
"IsUnmapped"
:
(
pWin
->
mapped
==
1
?
"IsUnviewable"
:
"IsViewable"
),
(
pWin
->
overrideRedirect
==
0
)
?
"No"
:
"Yes"
);
if
(
newLine
==
TRUE
)
{
fprintf
(
stderr
,
"
\n
"
);
}
}
/*
* Walk internal windows tree.
*/
void
nxagentInternalWindowsTree
(
WindowPtr
pWin
,
int
indent
)
{
WindowPtr
pChild
;
int
i
;
while
(
pWin
)
{
pChild
=
pWin
->
firstChild
;
for
(
i
=
0
;
i
<
indent
;
i
++
)
{
fprintf
(
stderr
,
" "
);
}
nxagentInternalWindowInfo
(
pWin
,
indent
,
TRUE
);
fprintf
(
stderr
,
"
\n
"
);
nxagentInternalWindowsTree
(
pChild
,
indent
+
4
);
pWin
=
pWin
->
nextSib
;
}
}
#endif
/* DEBUG_TREE */
void
nxagentSwitchResizeMode
(
ScreenPtr
pScreen
)
{
XSizeHints
sizeHints
;
...
...
@@ -576,14 +290,8 @@ void nxagentSwitchResizeMode(ScreenPtr pScreen)
nxagentLaunchDialog
(
DIALOG_DISABLE_DESKTOP_RESIZE_MODE
);
if
(
nxagentOption
(
Fullscreen
)
==
0
)
{
sizeHints
.
max_width
=
nxagentOption
(
RootWidth
);
sizeHints
.
max_height
=
nxagentOption
(
RootHeight
);
XSetWMNormalHints
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
sizeHints
);
}
sizeHints
.
max_width
=
nxagentOption
(
RootWidth
);
sizeHints
.
max_height
=
nxagentOption
(
RootHeight
);
}
else
{
...
...
@@ -591,8 +299,7 @@ void nxagentSwitchResizeMode(ScreenPtr pScreen)
nxagentLaunchDialog
(
DIALOG_ENABLE_DESKTOP_RESIZE_MODE
);
nxagentRRSetScreenConfig
(
pScreen
,
nxagentOption
(
Width
),
nxagentOption
(
Height
));
nxagentRRSetScreenConfig
(
pScreen
,
nxagentOption
(
Width
),
nxagentOption
(
Height
));
if
(
nxagentOption
(
ClientOs
)
==
ClientOsWinnt
)
{
...
...
@@ -601,10 +308,10 @@ void nxagentSwitchResizeMode(ScreenPtr pScreen)
sizeHints
.
max_width
=
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
sizeHints
.
max_height
=
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
XSetWMNormalHints
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
sizeHints
);
}
XSetWMNormalHints
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
sizeHints
);
}
void
nxagentShadowSwitchResizeMode
(
ScreenPtr
pScreen
)
...
...
@@ -804,7 +511,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
Bool
startKbd
=
False
;
Bool
closeSession
=
False
;
Bool
switchFullscreen
=
False
;
Bool
switchAllScreens
=
False
;
/*
* Last entered top level window.
...
...
@@ -949,22 +655,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
{
break
;
}
#ifdef DEBUG_TREE
case
doDebugTree
:
{
fprintf
(
stderr
,
"
\n
========== nxagentRemoteWindowsTree ==========
\n
"
);
nxagentRemoteWindowsTree
(
nxagentWindow
(
WindowTable
[
0
]),
0
);
fprintf
(
stderr
,
"
\n
========== nxagentInternalWindowsTree ==========
\n
"
);
nxagentInternalWindowsTree
(
WindowTable
[
0
],
0
);
break
;
}
#endif
/* DEBUG_TREE */
case
doCloseSession
:
{
closeSession
=
TRUE
;
...
...
@@ -989,36 +679,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
break
;
}
case
doSwitchAllScreens
:
{
switchAllScreens
=
TRUE
;
break
;
}
case
doViewportMoveUp
:
{
nxagentMoveViewport
(
pScreen
,
0
,
-
nxagentOption
(
Height
));
break
;
}
case
doViewportMoveDown
:
{
nxagentMoveViewport
(
pScreen
,
0
,
nxagentOption
(
Height
));
break
;
}
case
doViewportMoveLeft
:
{
nxagentMoveViewport
(
pScreen
,
-
nxagentOption
(
Width
),
0
);
break
;
}
case
doViewportMoveRight
:
{
nxagentMoveViewport
(
pScreen
,
nxagentOption
(
Width
),
0
);
break
;
}
case
doViewportUp
:
{
nxagentMoveViewport
(
pScreen
,
0
,
-
nextinc
(
viewportInc
));
...
...
@@ -1095,8 +755,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
if
(
nxagentOption
(
ViewOnly
)
==
0
&&
nxagentOption
(
Shadow
)
==
1
&&
result
==
doNothing
)
{
X
.
xkey
.
keycode
=
nxagentConvertKeycode
(
X
.
xkey
.
keycode
);
NXShadowEvent
(
nxagentDisplay
,
X
);
}
...
...
@@ -1105,27 +763,6 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
case
KeyRelease
:
{
enum
HandleEventResult
result
;
int
sendKey
=
0
;
/*
FIXME: If we don't flush the queue here, it could happen
that the inputInfo structure will not be up to date
when we perform the following check on down keys.
*/
ProcessInputEvents
();
/*
FIXME: Don't enqueue the KeyRelease event if the key was
not already pressed. This workaround avoids a fake
KeyPress is enqueued by the XKEYBOARD extension.
Another solution would be to let the events are
enqueued and to remove the KeyPress afterwards.
*/
if
(
BitIsOn
(
inputInfo
.
keyboard
->
key
->
down
,
nxagentConvertKeycode
(
X
.
xkey
.
keycode
)))
{
sendKey
=
1
;
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentDispatchEvents: Going to handle new KeyRelease event.
\n
"
);
...
...
@@ -1171,7 +808,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
x
.
u
.
keyButtonPointer
.
time
=
nxagentLastEventTime
;
}
if
(
!
(
nxagentCheckSpecialKeystroke
(
&
X
.
xkey
,
&
result
))
&&
sendKey
==
1
)
if
(
!
(
nxagentCheckSpecialKeystroke
(
&
X
.
xkey
,
&
result
)))
{
mieqEnqueue
(
&
x
);
...
...
@@ -1179,8 +816,6 @@ FIXME: Don't enqueue the KeyRelease event if the key was
if
(
nxagentOption
(
ViewOnly
)
==
0
&&
nxagentOption
(
Shadow
))
{
X
.
xkey
.
keycode
=
nxagentConvertKeycode
(
X
.
xkey
.
keycode
);
NXShadowEvent
(
nxagentDisplay
,
X
);
}
}
...
...
@@ -1244,7 +879,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
X
.
xbutton
.
subwindow
==
None
))
{
x
.
u
.
u
.
type
=
ButtonPress
;
x
.
u
.
u
.
detail
=
inputInfo
.
pointer
->
button
->
map
[
nxagentReversePointerMap
[
X
.
xbutton
.
button
-
1
]]
;
x
.
u
.
u
.
detail
=
X
.
xbutton
.
button
;
x
.
u
.
keyButtonPointer
.
time
=
nxagentLastEventTime
=
GetTimeInMillis
();
if
(
nxagentOption
(
Rootless
))
...
...
@@ -1317,7 +952,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
if
(
minimize
!=
True
)
{
x
.
u
.
u
.
type
=
ButtonRelease
;
x
.
u
.
u
.
detail
=
inputInfo
.
pointer
->
button
->
map
[
nxagentReversePointerMap
[
X
.
xbutton
.
button
-
1
]]
;
x
.
u
.
u
.
detail
=
X
.
xbutton
.
button
;
x
.
u
.
keyButtonPointer
.
time
=
nxagentLastEventTime
=
GetTimeInMillis
();
if
(
nxagentOption
(
Rootless
))
...
...
@@ -1671,11 +1306,13 @@ FIXME: Don't enqueue the KeyRelease event if the key was
nxagentScreenTrap
=
0
;
}
if
(
nxagentOption
(
Fullscreen
)
==
1
&&
X
.
xcrossing
.
window
==
nxagentFullscreenWindow
&&
X
.
xcrossing
.
detail
!=
NotifyInferior
)
if
(
nxagentOption
(
Fullscreen
))
{
nxagentGrabPointerAndKeyboard
(
&
X
);
if
(
X
.
xcrossing
.
window
==
nxagentFullscreenWindow
&&
X
.
xcrossing
.
detail
!=
NotifyInferior
)
{
nxagentGrabPointerAndKeyboard
(
&
X
);
}
}
if
(
X
.
xcrossing
.
detail
!=
NotifyInferior
)
...
...
@@ -1724,11 +1361,14 @@ FIXME: Don't enqueue the KeyRelease event if the key was
nxagentLastEnteredWindow
=
NULL
;
}
if
(
X
.
xcrossing
.
window
==
nxagentDefaultWindows
[
0
]
&&
X
.
xcrossing
.
detail
!=
NotifyInferior
&&
X
.
xcrossing
.
mode
==
NotifyNormal
)
if
(
nxagentOption
(
Fullscreen
))
{
nxagentUngrabPointerAndKeyboard
(
&
X
);
if
(
X
.
xcrossing
.
window
==
nxagentFullscreenWindow
&&
X
.
xcrossing
.
detail
!=
NotifyInferior
&&
X
.
xcrossing
.
mode
==
NotifyNormal
)
{
nxagentUngrabPointerAndKeyboard
(
&
X
);
}
}
if
(
X
.
xcrossing
.
detail
!=
NotifyInferior
)
...
...
@@ -1982,8 +1622,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
}
if
(
nxagentUseNXTrans
==
1
&&
nxagentOption
(
Rootless
)
==
0
&&
nxagentOption
(
Nested
)
==
0
&&
X
.
xmap
.
window
!=
nxagentIconWindow
)
nxagentOption
(
Nested
)
==
0
&&
X
.
xmap
.
window
!=
nxagentIconWindow
)
{
nxagentVisibility
=
VisibilityFullyObscured
;
}
...
...
@@ -2022,17 +1661,14 @@ FIXME: Don't enqueue the KeyRelease event if the key was
}
}
if
(
nxagentOption
(
AllScreens
)
==
1
)
if
(
nxagentOption
(
Fullscreen
)
==
1
)
{
if
(
X
.
xmap
.
window
==
nxagentIconWindow
)
{
pScreen
=
nxagentScreen
(
X
.
xmap
.
window
);
nxagentMaximizeToFullScreen
(
pScreen
);
}
}
if
(
nxagentOption
(
Fullscreen
)
==
1
)
{
nxagentVisibility
=
VisibilityUnobscured
;
nxagentVisibilityStop
=
False
;
nxagentVisibilityTimeout
=
GetTimeInMillis
()
+
2000
;
...
...
@@ -2042,17 +1678,10 @@ FIXME: Don't enqueue the KeyRelease event if the key was
}
case
MappingNotify
:
{
XMappingEvent
*
mappingEvent
=
(
XMappingEvent
*
)
&
X
;
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentDispatchEvents: WARNING! Going to handle new MappingNotify event.
\n
"
);
#endif
if
(
mappingEvent
->
request
==
MappingPointer
)
{
nxagentInitPointerMap
();
}
break
;
}
default:
...
...
@@ -2126,40 +1755,20 @@ FIXME: Don't enqueue the KeyRelease event if the key was
if
(
nxagentWMIsRunning
)
{
if
(
nxagentOption
(
AllScreens
))
if
(
nxagentOption
(
Fullscreen
))
{
nxagentMinimizeFromFullScreen
(
pScreen
);
}
else
{
XIconifyWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
0
],
DefaultScreen
(
nxagentDisplay
));
XIconifyWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
0
],
DefaultScreen
(
nxagentDisplay
));
}
}
}
if
(
switchFullscreen
)
{
if
(
nxagentOption
(
AllScreens
)
==
1
&&
nxagentOption
(
Fullscreen
)
==
1
)
{
nxagentSwitchAllScreens
(
pScreen
,
0
);
}
else
{
nxagentSwitchFullscreen
(
pScreen
,
!
nxagentOption
(
Fullscreen
));
}
}
if
(
switchAllScreens
)
{
if
(
nxagentOption
(
AllScreens
)
==
0
&&
nxagentOption
(
Fullscreen
)
==
1
)
{
nxagentSwitchFullscreen
(
pScreen
,
0
);
}
else
{
nxagentSwitchAllScreens
(
pScreen
,
!
nxagentOption
(
AllScreens
));
}
nxagentSwitchFullscreen
(
pScreen
,
!
nxagentOption
(
Fullscreen
));
}
if
(
startKbd
)
...
...
@@ -2312,16 +1921,8 @@ int nxagentHandleKeyPress(XEvent *X, enum HandleEventResult *result)
return
1
;
}
if
(
X
->
xkey
.
keycode
==
66
)
{
nxagentXkbState
.
Caps
=
(
~
nxagentXkbState
.
Caps
&
1
);
}
else
if
(
X
->
xkey
.
keycode
==
77
)
{
nxagentXkbState
.
Num
=
(
~
nxagentXkbState
.
Num
&
1
);
}
nxagentLastEventTime
=
nxagentLastKeyPressTime
=
GetTimeInMillis
();
x
.
u
.
u
.
type
=
KeyPress
;
x
.
u
.
u
.
detail
=
nxagentConvertKeycode
(
X
->
xkey
.
keycode
);
...
...
@@ -2759,8 +2360,7 @@ int nxagentHandleClientMessageEvent(XEvent *X, enum HandleEventResult *result)
}
if
(
X
->
xclient
.
window
==
(
nxagentOption
(
Fullscreen
)
?
nxagentIconWindow
:
nxagentDefaultWindows
[
0
])
||
nxagentWMIsRunning
==
0
)
nxagentIconWindow
:
nxagentDefaultWindows
[
0
]))
{
*
result
=
doCloseSession
;
}
...
...
@@ -3357,7 +2957,7 @@ int nxagentHandleConfigureNotify(XEvent* X)
if
(
X
->
xconfigure
.
window
==
nxagentDefaultWindows
[
pScreen
->
myNum
])
{
if
(
nxagentOption
(
AllScreens
)
==
0
)
if
(
nxagentOption
(
Fullscreen
)
==
0
)
{
if
(
nxagentOption
(
DesktopResize
)
==
1
)
{
...
...
@@ -3426,34 +3026,6 @@ int nxagentHandleConfigureNotify(XEvent* X)
doRandR
=
0
;
}
nxagentChangeOption
(
Width
,
X
->
xconfigure
.
width
);
nxagentChangeOption
(
Height
,
X
->
xconfigure
.
height
);
XMoveResizeWindow
(
nxagentDisplay
,
nxagentInputWindows
[
0
],
0
,
0
,
X
->
xconfigure
.
width
,
X
->
xconfigure
.
height
);
if
(
nxagentOption
(
Fullscreen
)
==
0
)
{
nxagentMoveViewport
(
pScreen
,
0
,
0
);
}
else
{
nxagentChangeOption
(
RootX
,
(
nxagentOption
(
Width
)
-
nxagentOption
(
RootWidth
))
/
2
);
nxagentChangeOption
(
RootY
,
(
nxagentOption
(
Height
)
-
nxagentOption
(
RootHeight
))
/
2
);
nxagentChangeOption
(
ViewportXSpan
,
nxagentOption
(
Width
)
-
nxagentOption
(
RootWidth
));
nxagentChangeOption
(
ViewportYSpan
,
nxagentOption
(
Height
)
-
nxagentOption
(
RootHeight
));
nxagentUpdateViewportFrame
(
0
,
0
,
nxagentOption
(
RootWidth
),
nxagentOption
(
RootHeight
));
XMoveWindow
(
nxagentDisplay
,
nxagentWindow
(
WindowTable
[
pScreen
->
myNum
]),
nxagentOption
(
RootX
),
nxagentOption
(
RootY
));
}
if
(
doRandR
)
{
#ifdef TEST
...
...
@@ -3475,6 +3047,8 @@ int nxagentHandleConfigureNotify(XEvent* X)
int
nxagentHandleReparentNotify
(
XEvent
*
X
)
{
ScreenPtr
pScreen
=
nxagentScreen
(
X
->
xreparent
.
window
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentHandleReparentNotify: Going to handle a new reparent event.
\n
"
);
#endif
...
...
@@ -3527,8 +3101,6 @@ int nxagentHandleReparentNotify(XEvent* X)
#ifdef WARNING
fprintf
(
stderr
,
"nxagentHandleReparentNotify: WARNING! Failed QueryTree request.
\n
"
);
#endif
break
;
}
if
(
result
&&
children_return
)
...
...
@@ -3581,95 +3153,6 @@ int nxagentHandleReparentNotify(XEvent* X)
return
1
;
}
else
if
(
nxagentWMIsRunning
==
1
&&
nxagentOption
(
Fullscreen
)
==
0
&&
nxagentOption
(
WMBorderWidth
)
==
-
1
)
{
XlibWindow
w
;
XlibWindow
rootReturn
=
0
;
XlibWindow
parentReturn
=
0
;
XlibWindow
junk
;
XlibWindow
*
childrenReturn
=
NULL
;
unsigned
int
nchildrenReturn
=
0
;
Status
result
;
XWindowAttributes
attributes
;
int
x
,
y
;
int
xParent
,
yParent
;
/*
* Calculate the absolute upper-left X e Y
*/
if
((
XGetWindowAttributes
(
nxagentDisplay
,
X
->
xreparent
.
window
,
&
attributes
)
==
0
))
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentHandleReparentNotify: WARNING! "
"XGetWindowAttributes failed.
\n
"
);
#endif
return
1
;
}
x
=
attributes
.
x
;
y
=
attributes
.
y
;
XTranslateCoordinates
(
nxagentDisplay
,
X
->
xreparent
.
window
,
attributes
.
root
,
-
attributes
.
border_width
,
-
attributes
.
border_width
,
&
x
,
&
y
,
&
junk
);
/*
* Calculate the parent X and parent Y.
*/
w
=
X
->
xreparent
.
parent
;
if
(
w
!=
DefaultRootWindow
(
nxagentDisplay
))
{
do
{
result
=
XQueryTree
(
nxagentDisplay
,
w
,
&
rootReturn
,
&
parentReturn
,
&
childrenReturn
,
&
nchildrenReturn
);
if
(
parentReturn
==
rootReturn
||
parentReturn
==
0
||
result
==
0
)
{
break
;
}
if
(
result
==
1
&&
childrenReturn
!=
NULL
)
{
XFree
(
childrenReturn
);
}
w
=
parentReturn
;
}
while
(
True
);
/*
* WM reparented. Find edge of the frame.
*/
if
(
XGetWindowAttributes
(
nxagentDisplay
,
w
,
&
attributes
)
==
0
)
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentHandleReparentNotify: WARNING! "
"XGetWindowAttributes failed for parent window.
\n
"
);
#endif
return
1
;
}
xParent
=
attributes
.
x
;
yParent
=
attributes
.
y
;
/*
* Difference between Absolute X and Parent X gives thickness of side frame.
* Difference between Absolute Y and Parent Y gives thickness of title bar.
*/
nxagentChangeOption
(
WMBorderWidth
,
(
x
-
xParent
));
nxagentChangeOption
(
WMTitleHeight
,
(
y
-
yParent
));
}
}
return
1
;
}
...
...
@@ -3830,8 +3313,6 @@ void nxagentGrabPointerAndKeyboard(XEvent *X)
int
resource
;
int
result
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentGrabPointerAndKeyboard: Grabbing pointer and keyboard with event at [%p].
\n
"
,
(
void
*
)
X
);
...
...
@@ -3850,22 +3331,8 @@ void nxagentGrabPointerAndKeyboard(XEvent *X)
fprintf
(
stderr
,
"nxagentGrabPointerAndKeyboard: Going to grab the keyboard in context [B1].
\n
"
);
#endif
result
=
XGrabKeyboard
(
nxagentDisplay
,
nxagentFullscreenWindow
,
True
,
GrabModeAsync
,
GrabModeAsync
,
now
);
if
(
result
!=
GrabSuccess
)
{
return
;
}
/*
* The smart scheduler could be stopped while
* waiting for the reply. In this case we need
* to yield explicitly to avoid to be stuck in
* the dispatch loop forever.
*/
isItTimeToYield
=
1
;
XGrabKeyboard
(
nxagentDisplay
,
nxagentFullscreenWindow
,
True
,
GrabModeAsync
,
GrabModeAsync
,
now
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentGrabPointerAndKeyboard: Going to grab the pointer in context [B2].
\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -29,15 +29,9 @@ enum HandleEventResult
{
doNothing
=
0
,
doMinimize
,
doDebugTree
,
doCloseSession
,
doStartKbd
,
doSwitchFullscreen
,
doSwitchAllScreens
,
doViewportMoveUp
,
doViewportMoveLeft
,
doViewportMoveRight
,
doViewportMoveDown
,
doViewportLeft
,
doViewportUp
,
doViewportRight
,
...
...
nx-X11/programs/Xserver/hw/nxagent/Extensions.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Extensions.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Font.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Font.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/GC.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/GCOps.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/GCOps.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/GCs.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -527,8 +527,7 @@ void nxagentBlockHandler(pointer data, struct timeval **timeout, pointer mask)
synchronize
,
nxagentReady
);
#endif
if
(
NXDisplayError
(
nxagentDisplay
)
==
0
&&
nxagentQueuedEvents
(
nxagentDisplay
)
>
0
)
if
(
nxagentQueuedEvents
(
nxagentDisplay
)
>
0
)
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentBlockHandler: WARNING! Forcing a null timeout with events queued.
\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Handlers.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Holder.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Holder.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Icons.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11 NoMachine, http://www.nomachine.com/.
*/
/* Copyright (c) 2001, 20
09 NoMachine, http://www.nomachine.com.
*/
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Image.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Image.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
d30ef034
...
...
@@ -206,8 +206,7 @@ DEFINES = -g $(OS_DEFINES) $(EXT_DEFINES) $(UPG_DEFINES) \
-DNXAGENT_SPLASH \
-DNXAGENT_ARTSD \
-UNX_DEBUG_INPUT \
-UPANORAMIX \
-UDEBUG_TREE
-UPANORAMIX
all:: $(OBJS)
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -193,7 +193,7 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
if
(
serverGeneration
<=
1
)
{
fprintf
(
stderr
,
"
\n
NXAGENT - Version "
NXAGENT_VERSION
"
\n\n
"
);
fprintf
(
stderr
,
"Copyright (C) 2001, 20
10
NoMachine.
\n
"
);
fprintf
(
stderr
,
"Copyright (C) 2001, 20
07
NoMachine.
\n
"
);
fprintf
(
stderr
,
"See http://www.nomachine.com/ for more information.
\n\n
"
);
fprintf
(
stderr
,
"Info: Agent running with pid '%d'.
\n
"
,
getpid
());
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -92,18 +92,6 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
{
switch
(
sym
)
{
#ifdef DEBUG_TREE
case
XK_q
:
case
XK_Q
:
{
*
result
=
doDebugTree
;
break
;
}
#endif
/* DEBUG_TREE */
case
XK_t
:
case
XK_T
:
{
...
...
@@ -116,7 +104,7 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
{
if
(
nxagentOption
(
Rootless
)
==
False
)
{
*
result
=
doSwitch
AllScreens
;
*
result
=
doSwitch
Fullscreen
;
}
break
;
...
...
@@ -276,68 +264,6 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
#endif
}
}
else
if
((
X
->
state
&
nxagentAltMetaMask
)
&&
((
X
->
state
&
(
ControlMask
|
ShiftMask
))
==
(
ControlMask
|
ShiftMask
)))
{
switch
(
sym
)
{
case
XK_f
:
case
XK_F
:
{
if
(
nxagentOption
(
Rootless
)
==
0
)
{
*
result
=
doSwitchFullscreen
;
}
break
;
}
case
XK_Left
:
case
XK_KP_Left
:
{
if
(
nxagentOption
(
Rootless
)
==
0
&&
nxagentOption
(
DesktopResize
)
==
0
)
{
*
result
=
doViewportMoveLeft
;
}
break
;
}
case
XK_Up
:
case
XK_KP_Up
:
{
if
(
nxagentOption
(
Rootless
)
==
0
&&
nxagentOption
(
DesktopResize
)
==
0
)
{
*
result
=
doViewportMoveUp
;
}
break
;
}
case
XK_Right
:
case
XK_KP_Right
:
{
if
(
nxagentOption
(
Rootless
)
==
0
&&
nxagentOption
(
DesktopResize
)
==
0
)
{
*
result
=
doViewportMoveRight
;
}
break
;
}
case
XK_Down
:
case
XK_KP_Down
:
{
if
(
nxagentOption
(
Rootless
)
==
0
&&
nxagentOption
(
DesktopResize
)
==
0
)
{
*
result
=
doViewportMoveDown
;
}
break
;
}
}
}
return
(
*
result
==
doNothing
)
?
0
:
1
;
}
nx-X11/programs/Xserver/hw/nxagent/Keystroke.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/LICENSE
View file @
d30ef034
Copyright (c) 2001, 20
11
NoMachine - http://www.nomachine.com/.
Copyright (c) 2001, 20
09
NoMachine - http://www.nomachine.com/.
NXAGENT and NX extensions to X are copyright of NoMachine.
...
...
nx-X11/programs/Xserver/hw/nxagent/Literals.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Millis.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Millis.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXevents.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXextension.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXextension.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglyph.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglyph.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglyphstr.h
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXglyphstr.h.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXmiglyph.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXmiglyph.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXpicture.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXpicture.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXpicturestr.h
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXpicturestr.h.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXrandr.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXrandr.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXrender.c
View file @
d30ef034
...
...
@@ -31,7 +31,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXrender.c.NX.original
View file @
d30ef034
...
...
@@ -31,7 +31,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c.NX.original
View file @
d30ef034
...
...
@@ -6,7 +6,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXxrandr.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXxrandr.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/NXxrandrint.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Options.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -63,9 +63,6 @@ void nxagentInitOptions()
nxagentOptions
.
Height
=
0
;
nxagentOptions
.
BorderWidth
=
0
;
nxagentOptions
.
WMBorderWidth
=
-
1
;
nxagentOptions
.
WMTitleHeight
=
-
1
;
nxagentOptions
.
SavedX
=
0
;
nxagentOptions
.
SavedY
=
0
;
nxagentOptions
.
SavedWidth
=
0
;
...
...
@@ -171,9 +168,6 @@ void nxagentResetOptions()
nxagentOptions
.
TileWidth
=
UNDEFINED
;
nxagentOptions
.
TileHeight
=
UNDEFINED
;
nxagentOptions
.
WMBorderWidth
=
-
1
;
nxagentOptions
.
WMTitleHeight
=
-
1
;
}
void
nxagentSaveOptions
()
...
...
nx-X11/programs/Xserver/hw/nxagent/Options.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -103,13 +103,6 @@ typedef struct _AgentOptions
int
Fullscreen
;
/*
* True if the fullscreen NX session will
* extend on all available screens.
*/
int
AllScreens
;
/*
* Set to the auto-disconnect timeout, if
* the user activated this feature.
*/
...
...
@@ -133,9 +126,6 @@ typedef struct _AgentOptions
* screen.
*/
int
WMBorderWidth
;
int
WMTitleHeight
;
int
SavedX
;
int
SavedY
;
int
SavedWidth
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixels.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixels.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -108,12 +108,6 @@ FIXME: The condition checking for the render
avoid problems with the render composi-
te on XFree86 remote server.
*/
/*
FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
to handle situation, when pSrc -> pDrawable
is NULL. This case happens with gradients
and solid fill.
#define NXAGENT_SHOULD_DEFER_COMPOSITE(pSrc, pMask, pDst) \
((nxagentRenderVersionMajor == 0 && \
nxagentRenderVersionMinor == 8 && \
...
...
@@ -124,18 +118,6 @@ FIXME: Changed macro: NXAGENT_SHOULD_DEFER_COMPOSITE
nxagentOption(DeferLevel) == 1) || \
(nxagentOption(DeferLevel) >= 2 && \
nxagentOption(LinkType) < LINK_TYPE_ADSL))
*/
#define NXAGENT_SHOULD_DEFER_COMPOSITE(pSrc, pMask, pDst) \
((nxagentRenderVersionMajor == 0 && \
nxagentRenderVersionMinor == 8 && \
(pDst) -> pDrawable -> type == DRAWABLE_PIXMAP) || \
(nxagentOption(DeferLevel) >= 2 && \
nxagentOption(LinkType) < LINK_TYPE_ADSL) || \
(nxagentOption(DeferLevel) == 1 && \
(pDst) -> pDrawable -> type == DRAWABLE_PIXMAP && \
(((pSrc) -> pDrawable && nxagentDrawableStatus((pSrc) -> pDrawable) == NotSynchronized) || \
((pMask) && nxagentDrawableStatus((pMask) -> pDrawable) == NotSynchronized))))
#define NXAGENT_SHOULD_DEFER_PUTIMAGE(pDrawable) \
(nxagentSplitTrap == 0 && \
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixmaps.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Pointer.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -57,13 +57,6 @@ is" without express or implied warranty.
#undef TEST
#undef DEBUG
/*
* The nxagentReversePointerMap array is used to
* memorize remote display pointer map.
*/
unsigned
char
nxagentReversePointerMap
[
MAXBUTTONS
];
void
nxagentChangePointerControl
(
DeviceIntPtr
pDev
,
PtrCtrl
*
ctrl
)
{
/*
...
...
@@ -132,8 +125,6 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff)
return
Success
;
}
nxagentInitPointerMap
();
nxagentEnablePointerEvents
();
break
;
...
...
@@ -164,28 +155,3 @@ int nxagentPointerProc(DeviceIntPtr pDev, int onoff)
return
Success
;
}
void
nxagentInitPointerMap
(
void
)
{
int
numButtons
;
int
i
;
unsigned
char
pointerMap
[
MAXBUTTONS
];
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentInitPointerMap: Going to retrieve the "
"pointer map from remote display.
\n
"
);
#endif
numButtons
=
XGetPointerMapping
(
nxagentDisplay
,
pointerMap
,
MAXBUTTONS
);
/*
* Computing revers pointer map.
*/
for
(
i
=
1
;
i
<=
numButtons
;
i
++
)
{
nxagentReversePointerMap
[
pointerMap
[
i
-
1
]
-
1
]
=
i
;
}
}
nx-X11/programs/Xserver/hw/nxagent/Pointer.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -38,17 +38,8 @@ is" without express or implied warranty.
(ButtonPressMask | ButtonReleaseMask | PointerMotionMask | \
EnterWindowMask | LeaveWindowMask)
/*
* The nxagentReversePointerMap array is used to
* memorize remote display pointer map.
*/
extern
unsigned
char
nxagentReversePointerMap
[
MAXBUTTONS
];
void
nxagentChangePointerControl
(
DeviceIntPtr
pDev
,
PtrCtrl
*
ctrl
);
int
nxagentPointerProc
(
DeviceIntPtr
pDev
,
int
onoff
);
void
nxagentInitPointerMap
(
void
);
#endif
/* __Pointer_H__ */
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -81,8 +81,6 @@ extern Bool nxagentUninstallFontServerPath(void);
extern
void
nxagentRemoveXConnection
(
void
);
extern
void
nxagentInitPointerMap
(
void
);
static
char
*
nxagentGetReconnectError
(
void
);
void
nxagentInitializeRecLossyLevel
(
void
);
...
...
@@ -586,8 +584,6 @@ Bool nxagentReconnectSession(void)
nxagentOldKeyboard
=
NULL
;
}
nxagentInitPointerMap
();
nxagentDeactivatePointerGrab
();
nxagentWakeupByReconnect
();
...
...
nx-X11/programs/Xserver/hw/nxagent/Reconnect.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Render.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -147,6 +147,8 @@ void nxagentCursorPostSaveRenderInfo(CursorPtr pCursor, ScreenPtr pScreen,
int
nxagentCreatePicture
(
PicturePtr
pPicture
,
Mask
mask
);
void
nxagentDestroyPicture
(
PicturePtr
pPicture
);
int
nxagentChangePictureClip
(
PicturePtr
pPicture
,
int
clipType
,
int
nRects
,
xRectangle
*
rects
,
int
xOrigin
,
int
yOrigin
);
...
...
@@ -584,16 +586,16 @@ XRenderPictFormat *nxagentMatchingFormats(PictFormatPtr pFormat)
void
nxagentDestroyPicture
(
PicturePtr
pPicture
)
{
if
(
pPicture
==
NULL
||
nxagentPicturePriv
(
pPicture
)
->
picture
==
0
)
{
return
;
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentDestroyPicture: Going to destroy picture at [%p].
\n
"
,
(
void
*
)
pPicture
);
#endif
if
(
pPicture
==
NULL
)
{
return
;
}
XRenderFreePicture
(
nxagentDisplay
,
nxagentPicturePriv
(
pPicture
)
->
picture
);
...
...
@@ -1008,15 +1010,12 @@ void nxagentComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pD
#ifdef DEBUG
if
(
pSrc
->
pDrawable
!=
NULL
)
{
fprintf
(
stderr
,
"nxagentComposite: Source Picture [%lu][%p] with drawable [%s%s][%p].
\n
"
,
nxagentPicturePriv
(
pSrc
)
->
picture
,
(
void
*
)
pSrc
,
(
pSrc
->
pDrawable
->
type
==
DRAWABLE_PIXMAP
&&
nxagentIsShmPixmap
((
PixmapPtr
)
pSrc
->
pDrawable
))
?
"Shared "
:
""
,
pSrc
->
pDrawable
->
type
==
DRAWABLE_PIXMAP
?
"Pixmap"
:
"Window"
,
(
void
*
)
pSrc
->
pDrawable
);
}
fprintf
(
stderr
,
"nxagentComposite: Source Picture [%lu][%p] with drawable [%s%s][%p].
\n
"
,
nxagentPicturePriv
(
pSrc
)
->
picture
,
(
void
*
)
pSrc
,
(
pSrc
->
pDrawable
->
type
==
DRAWABLE_PIXMAP
&&
nxagentIsShmPixmap
((
PixmapPtr
)
pSrc
->
pDrawable
))
?
"Shared "
:
""
,
pSrc
->
pDrawable
->
type
==
DRAWABLE_PIXMAP
?
"Pixmap"
:
"Window"
,
(
void
*
)
pSrc
->
pDrawable
);
fprintf
(
stderr
,
"nxagentComposite: Destination Picture [%lu][%p] with drawable [%s%s][%p].
\n
"
,
nxagentPicturePriv
(
pDst
)
->
picture
,
(
void
*
)
pDst
,
...
...
@@ -1065,19 +1064,16 @@ void nxagentComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pD
* the wrong data.
*/
if
(
pSrc
->
pDrawable
!=
NULL
)
{
nxagentSynchronizeShmPixmap
(
pSrc
->
pDrawable
,
xSrc
,
ySrc
,
width
,
height
);
nxagentSynchronizeShmPixmap
(
pSrc
->
pDrawable
,
xSrc
,
ySrc
,
width
,
height
);
if
(
nxagentDrawableStatus
(
pSrc
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentComposite: Synchronizing the source drawable [%p].
\n
"
,
(
void
*
)
pSrc
->
pDrawable
);
#endif
if
(
nxagentDrawableStatus
(
pSrc
->
pDrawable
)
==
NotSynchronized
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentComposite: Synchronizing the source drawable [%p].
\n
"
,
(
void
*
)
pSrc
->
pDrawable
);
#endif
nxagentSynchronizeDrawable
(
pSrc
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
nxagentSynchronizeDrawable
(
pSrc
->
pDrawable
,
DO_WAIT
,
NEVER_BREAK
,
NULL
);
}
if
(
pDst
->
pDrawable
!=
pSrc
->
pDrawable
)
...
...
@@ -2815,248 +2811,3 @@ Bool nxagentDisconnectAllPicture()
return
True
;
}
void
nxagentRenderCreateSolidFill
(
PicturePtr
pPicture
,
xRenderColor
*
color
)
{
Picture
id
;
if
(
nxagentRenderEnable
==
False
)
{
return
;
}
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentRenderCreateSolidFill: Got called.
\n
"
);
if
(
pPicture
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateSolidFill: WARNING! pPicture pointer is NULL.
\n
"
);
}
if
(
color
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateSolidFill: WARNING! color pointer is NULL.
\n
"
);
}
#endif
/* #ifdef DEBUG */
memset
(
&
(
nxagentPicturePriv
(
pPicture
)
->
lastServerValues
),
0
,
sizeof
(
XRenderPictureAttributes_
));
id
=
XRenderCreateSolidFill
(
nxagentDisplay
,
(
XRenderColor
*
)
color
);
#ifdef DEBUG
XSync
(
nxagentDisplay
,
0
);
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentRenderCreateSolidFill: Created solid fill xid [%lu].
\n
"
,
id
);
#endif
nxagentPicturePriv
(
pPicture
)
->
picture
=
id
;
}
void
nxagentRenderCreateLinearGradient
(
PicturePtr
pPicture
,
xPointFixed
*
p1
,
xPointFixed
*
p2
,
int
nStops
,
xFixed
*
stops
,
xRenderColor
*
colors
)
{
Picture
id
;
XLinearGradient
linearGradient
;
if
(
nxagentRenderEnable
==
False
)
{
return
;
}
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentRenderCreateLinearGradient: Got called.
\n
"
);
if
(
pPicture
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateLinearGradient: WARNING! pPicture pointer is NULL.
\n
"
);
}
if
(
p1
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateLinearGradient: WARNING! p1 pointer is NULL.
\n
"
);
}
if
(
p2
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateLinearGradient: WARNING! p2 pointer is NULL.
\n
"
);
}
if
(
stops
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateLinearGradient: WARNING! stops pointer is NULL.
\n
"
);
}
if
(
colors
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateLinearGradient: WARNING! colors pointer is NULL.
\n
"
);
}
#endif
/* #ifdef DEBUG */
memset
(
&
(
nxagentPicturePriv
(
pPicture
)
->
lastServerValues
),
0
,
sizeof
(
XRenderPictureAttributes_
));
linearGradient
.
p1
.
x
=
(
XFixed
)
p1
->
x
;
linearGradient
.
p1
.
y
=
(
XFixed
)
p1
->
y
;
linearGradient
.
p2
.
x
=
(
XFixed
)
p2
->
x
;
linearGradient
.
p2
.
y
=
(
XFixed
)
p2
->
y
;
id
=
XRenderCreateLinearGradient
(
nxagentDisplay
,
&
linearGradient
,
(
XFixed
*
)
stops
,
(
XRenderColor
*
)
colors
,
nStops
);
#ifdef DEBUG
XSync
(
nxagentDisplay
,
0
);
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentRenderCreateLinearGradient: Created linear gradient xid [%lu].
\n
"
,
id
);
#endif
nxagentPicturePriv
(
pPicture
)
->
picture
=
id
;
}
void
nxagentRenderCreateRadialGradient
(
PicturePtr
pPicture
,
xPointFixed
*
inner
,
xPointFixed
*
outer
,
xFixed
innerRadius
,
xFixed
outerRadius
,
int
nStops
,
xFixed
*
stops
,
xRenderColor
*
colors
)
{
Picture
id
;
XRadialGradient
radialGradient
;
if
(
nxagentRenderEnable
==
False
)
{
return
;
}
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentRenderCreateRadialGradient: Got called.
\n
"
);
if
(
pPicture
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateRadialGradient: WARNING! pPicture pointer is NULL.
\n
"
);
}
if
(
inner
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateRadialGradient: WARNING! inner pointer is NULL.
\n
"
);
}
if
(
outer
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateRadialGradient: WARNING! outer pointer is NULL.
\n
"
);
}
if
(
stops
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateRadialGradient: WARNING! stops pointer is NULL.
\n
"
);
}
if
(
colors
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateRadialGradient: WARNING! colors pointer is NULL.
\n
"
);
}
#endif
/* #ifdef DEBUG */
memset
(
&
(
nxagentPicturePriv
(
pPicture
)
->
lastServerValues
),
0
,
sizeof
(
XRenderPictureAttributes_
));
radialGradient
.
inner
.
x
=
(
XFixed
)
inner
->
x
;
radialGradient
.
inner
.
y
=
(
XFixed
)
inner
->
y
;
radialGradient
.
inner
.
radius
=
(
XFixed
)
innerRadius
;
radialGradient
.
outer
.
x
=
(
XFixed
)
outer
->
x
;
radialGradient
.
outer
.
y
=
(
XFixed
)
outer
->
y
;
radialGradient
.
outer
.
radius
=
(
XFixed
)
outerRadius
;
id
=
XRenderCreateRadialGradient
(
nxagentDisplay
,
&
radialGradient
,
(
XFixed
*
)
stops
,
(
XRenderColor
*
)
colors
,
nStops
);
#ifdef DEBUG
XSync
(
nxagentDisplay
,
0
);
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentRenderCreateRadialGradient: Created radial gradient xid [%lu].
\n
"
,
id
);
#endif
nxagentPicturePriv
(
pPicture
)
->
picture
=
id
;
}
void
nxagentRenderCreateConicalGradient
(
PicturePtr
pPicture
,
xPointFixed
*
center
,
xFixed
angle
,
int
nStops
,
xFixed
*
stops
,
xRenderColor
*
colors
)
{
Picture
id
;
XConicalGradient
conicalGradient
;
if
(
nxagentRenderEnable
==
False
)
{
return
;
}
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentRenderCreateConicalGradient: Got called.
\n
"
);
if
(
pPicture
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateConicalGradient: WARNING! pPicture pointer is NULL.
\n
"
);
}
if
(
center
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateConicalGradient: WARNING! center pointer is NULL.
\n
"
);
}
if
(
stops
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateConicalGradient: WARNING! stops pointer is NULL.
\n
"
);
}
if
(
colors
==
NULL
)
{
fprintf
(
stderr
,
"nxagentRenderCreateConicalGradient: WARNING! colors pointer is NULL.
\n
"
);
}
#endif
/* #ifdef DEBUG */
memset
(
&
(
nxagentPicturePriv
(
pPicture
)
->
lastServerValues
),
0
,
sizeof
(
XRenderPictureAttributes_
));
conicalGradient
.
center
.
x
=
(
XFixed
)
center
->
x
;
conicalGradient
.
center
.
y
=
(
XFixed
)
center
->
y
;
conicalGradient
.
angle
=
(
XFixed
)
angle
;
id
=
XRenderCreateConicalGradient
(
nxagentDisplay
,
&
conicalGradient
,
(
XFixed
*
)
stops
,
(
XRenderColor
*
)
colors
,
nStops
);
#ifdef DEBUG
XSync
(
nxagentDisplay
,
0
);
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentRenderCreateConicalGradient: Created conical gradient xid [%lu].
\n
"
,
id
);
#endif
nxagentPicturePriv
(
pPicture
)
->
picture
=
id
;
}
nx-X11/programs/Xserver/hw/nxagent/Render.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -105,6 +105,4 @@ void nxagentDisconnectPicture(pointer p0, XID x1, void* p2);
void
nxagentReconnectGlyphSet
(
void
*
p0
,
XID
x1
,
void
*
p2
);
void
nxagentDestroyPicture
(
PicturePtr
pPicture
);
#endif
/* __Render_H__ */
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -626,7 +626,6 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
XlibAtom
*
atoms
=
malloc
(
nUnits
*
sizeof
(
*
atoms
));
Atom
*
input
=
value
;
int
i
;
int
j
=
0
;
freeMem
=
True
;
export
=
True
;
...
...
@@ -634,40 +633,16 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
for
(
i
=
0
;
i
<
nUnits
;
i
++
)
{
/*
* Exporting the _NET_WM_PING property could
* result in rootless windows being grayed out
* when the compiz window manager is running.
*
* Better solution would probably be to handle
* the communication with the window manager
* instead of just getting rid of the property.
*/
if
(
strcmp
(
NameForAtom
(
input
[
i
]),
"_NET_WM_PING"
)
!=
0
)
{
atoms
[
j
]
=
nxagentLocalToRemoteAtom
(
input
[
i
]);
if
(
atoms
[
j
]
==
None
)
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentExportProperty: WARNING! Failed to convert local atom %ld [%s].
\n
"
,
(
long
int
)
input
[
i
],
validateString
(
NameForAtom
(
input
[
i
])));
#endif
}
j
++
;
}
#ifdef TEST
else
{
fprintf
(
stderr
,
"nxagentExportProperty: WARNING! "
"Not exporting the _NET_WM_PING property.
\n
"
);
}
#endif
atoms
[
i
]
=
nxagentLocalToRemoteAtom
(
input
[
i
]);
if
(
atoms
[
i
]
==
None
)
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentExportProperty: WARNING! Failed to convert local atom %ld [%s].
\n
"
,
(
long
int
)
input
[
i
],
validateString
(
NameForAtom
(
input
[
i
])));
#endif
}
}
nUnits
=
j
;
}
else
if
(
strcmp
(
typeS
,
"WINDOW"
)
==
0
)
{
...
...
@@ -725,57 +700,7 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
}
else
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentExportProperty: Property [%lu] format [%i] "
"units [%lu].
\n
"
,
propertyX
,
format
,
nUnits
);
#endif
if
((
format
>>
3
)
*
nUnits
+
sizeof
(
xChangePropertyReq
)
<
(
MAX_REQUEST_SIZE
<<
2
))
{
XChangeProperty
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
propertyX
,
typeX
,
format
,
mode
,
(
void
*
)
output
,
nUnits
);
}
else
if
(
mode
==
PropModeReplace
)
{
int
n
;
char
*
data
;
XDeleteProperty
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
propertyX
);
data
=
(
char
*
)
output
;
while
(
nUnits
>
0
)
{
if
((
format
>>
3
)
*
nUnits
+
sizeof
(
xChangePropertyReq
)
<
(
MAX_REQUEST_SIZE
<<
2
))
{
n
=
nUnits
;
}
else
{
n
=
((
MAX_REQUEST_SIZE
<<
2
)
-
sizeof
(
xChangePropertyReq
))
/
(
format
>>
3
);
}
XChangeProperty
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
propertyX
,
typeX
,
format
,
PropModeAppend
,
(
void
*
)
data
,
n
);
nUnits
-=
n
;
data
=
(
char
*
)
data
+
n
*
(
format
>>
3
);
}
}
else
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentExportProperty: WARNING! "
"Property [%lu] too long.
\n
"
,
propertyX
);
#endif
goto
nxagentExportPropertyError
;
}
XChangeProperty
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
propertyX
,
typeX
,
format
,
mode
,
(
void
*
)
output
,
nUnits
);
nxagentAddPropertyToList
(
propertyX
,
pWin
);
}
}
...
...
@@ -790,8 +715,6 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
#endif
}
nxagentExportPropertyError
:
if
(
freeMem
)
{
xfree
(
output
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Rootless.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -292,7 +292,7 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
{
XUnmapWindow
(
nxagentDisplay
,
nxagentFullscreenWindow
);
if
(
nxagentIpaq
)
if
(
nxagentIpaq
)
{
XMapWindow
(
nxagentDisplay
,
nxagentIconWindow
);
XIconifyWindow
(
nxagentDisplay
,
nxagentIconWindow
,
...
...
@@ -307,7 +307,7 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
void
nxagentMaximizeToFullScreen
(
ScreenPtr
pScreen
)
{
if
(
nxagentIpaq
)
if
(
nxagentIpaq
)
{
XUnmapWindow
(
nxagentDisplay
,
nxagentIconWindow
);
...
...
@@ -334,7 +334,7 @@ FIXME: We'll chech for ReparentNotify and LeaveNotify events after XReparentWind
for
(
i
=
0
;
i
<
100
&&
nxagentWMIsRunning
;
i
++
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagent
MaximizeTo
Fullscreen: WARNING! Going to wait for the ReparentNotify event.
\n
"
);
fprintf
(
stderr
,
"nxagent
Switch
Fullscreen: WARNING! Going to wait for the ReparentNotify event.
\n
"
);
#endif
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
ReparentNotify
,
&
e
))
...
...
@@ -977,10 +977,6 @@ Bool nxagentOpenScreen(int index, ScreenPtr pScreen,
nxagentChangeOption
(
Fullscreen
,
False
);
nxagentChangeOption
(
AllScreens
,
False
);
nxagentFullscreenWindow
=
0
;
resetAgentPosition
=
True
;
}
...
...
@@ -1384,13 +1380,10 @@ N/A
nxagentChangeOption
(
Height
,
gattributes
.
height
);
}
if
(
nxagentOption
(
AllScreens
))
{
attributes
.
override_redirect
=
True
;
}
if
(
nxagentOption
(
Fullscreen
))
{
attributes
.
override_redirect
=
True
;
/*
* We need to disable the host's screensaver or
* it will otherwise grab the screen even if it
...
...
@@ -1617,7 +1610,7 @@ N/A
nxagentReconnectTrap
==
1
)
{
valuemask
=
CWBackPixel
|
CWEventMask
|
CWColormap
|
(
nxagentOption
(
AllScreens
)
==
1
?
CWOverrideRedirect
:
0
);
(
nxagentOption
(
Fullscreen
)
==
1
?
CWOverrideRedirect
:
0
);
attributes
.
background_pixel
=
nxagentBlackPixel
;
...
...
@@ -1625,13 +1618,10 @@ N/A
attributes
.
colormap
=
nxagentDefaultVisualColormap
(
nxagentDefaultVisual
(
pScreen
));
if
(
nxagentOption
(
AllScreens
)
==
1
)
if
(
nxagentOption
(
Fullscreen
)
==
1
)
{
attributes
.
override_redirect
=
True
;
}
if
(
nxagentOption
(
Fullscreen
)
==
1
)
{
if
(
nxagentReconnectTrap
)
{
/*
...
...
@@ -1764,7 +1754,7 @@ N/A
sizeHints
.
width
=
nxagentOption
(
RootWidth
);
sizeHints
.
height
=
nxagentOption
(
RootHeight
);
if
(
nxagentOption
(
DesktopResize
)
==
1
||
nxagentOption
(
Fullscreen
)
==
1
)
if
(
nxagentOption
(
DesktopResize
)
==
1
)
{
sizeHints
.
max_width
=
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
sizeHints
.
max_height
=
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
...
...
@@ -1809,14 +1799,30 @@ N/A
XClearWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
]);
if
(
nxagentOption
(
AllScreens
))
if
(
nxagentOption
(
Fullscreen
))
{
valuemask
=
CWBackPixmap
|
CWColormap
|
CWOverrideRedirect
;
}
else
{
valuemask
=
CWBackPixmap
|
CWColormap
;
}
attributes
.
background_pixmap
=
nxagentScreenSaverPixmap
;
attributes
.
colormap
=
DefaultColormap
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
));
if
(
nxagentOption
(
Fullscreen
))
{
attributes
.
override_redirect
=
False
;
if
(
nxagentReconnectTrap
)
{
XGrabKeyboard
(
nxagentDisplay
,
nxagentFullscreenWindow
,
True
,
GrabModeAsync
,
GrabModeAsync
,
CurrentTime
);
}
}
if
(
nxagentOption
(
Fullscreen
))
{
nxagentIconWindow
=
nxagentCreateIconWindow
();
}
else
...
...
@@ -1874,6 +1880,13 @@ N/A
*/
XSetWMProtocols
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
deleteWMatom
,
1
);
/*
if (nxagentOption(Fullscreen))
{
XSetWMProtocols(nxagentDisplay, nxagentIconWindow, &deleteWMatom, 1);
}
*/
}
else
{
...
...
@@ -2172,6 +2185,8 @@ Bool nxagentResizeScreen(ScreenPtr pScreen, int width, int height,
int
oldMmWidth
;
int
oldMmHeight
;
RegionPtr
pRootWinSize
;
#ifdef TEST
nxagentPrintAgentGeometry
(
"Before Resize Screen"
,
"nxagentResizeScreen:"
);
#endif
...
...
@@ -2251,10 +2266,13 @@ FIXME: We should try to restore the previously
if
(
nxagentOption
(
Fullscreen
))
{
nxagentChangeOption
(
RootX
,
(
nxagentOption
(
Width
)
-
nxagentOption
(
RootWidth
))
/
2
);
nxagentChangeOption
(
RootY
,
(
nxagentOption
(
Height
)
-
nxagentOption
(
RootHeight
))
/
2
);
nxagentChangeOption
(
Width
,
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
)));
nxagentChangeOption
(
Height
,
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
)));
nxagentChangeOption
(
RootX
,
(
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
))
-
nxagentOption
(
RootWidth
))
/
2
);
nxagentChangeOption
(
RootY
,
(
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
))
-
nxagentOption
(
RootHeight
))
/
2
);
}
else
{
...
...
@@ -2266,6 +2284,62 @@ FIXME: We should try to restore the previously
nxagentChangeOption
(
ViewportYSpan
,
nxagentOption
(
Height
)
-
nxagentOption
(
RootHeight
));
/*
* Change agent window size and size hints.
*/
sizeHints
.
flags
=
PPosition
|
PMinSize
|
PMaxSize
;
sizeHints
.
x
=
nxagentOption
(
X
);
sizeHints
.
y
=
nxagentOption
(
Y
);
sizeHints
.
min_width
=
MIN_NXAGENT_WIDTH
;
sizeHints
.
min_height
=
MIN_NXAGENT_HEIGHT
;
sizeHints
.
width
=
width
;
sizeHints
.
height
=
height
;
if
(
nxagentOption
(
DesktopResize
)
==
1
)
{
sizeHints
.
max_width
=
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
sizeHints
.
max_height
=
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
));
}
else
{
sizeHints
.
max_width
=
nxagentOption
(
RootWidth
);
sizeHints
.
max_height
=
nxagentOption
(
RootHeight
);
}
if
(
nxagentUserGeometry
.
flag
&
XValue
||
nxagentUserGeometry
.
flag
&
YValue
)
{
sizeHints
.
flags
|=
USPosition
;
}
if
(
nxagentUserGeometry
.
flag
&
WidthValue
||
nxagentUserGeometry
.
flag
&
HeightValue
)
{
sizeHints
.
flags
|=
USSize
;
}
XSetWMNormalHints
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
&
sizeHints
);
if
(
nxagentOption
(
Fullscreen
))
{
XResizeWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
)),
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
)));
XResizeWindow
(
nxagentDisplay
,
nxagentInputWindows
[
pScreen
->
myNum
],
WidthOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
)),
HeightOfScreen
(
DefaultScreenOfDisplay
(
nxagentDisplay
)));
}
else
{
XResizeWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
],
width
,
height
);
if
(
nxagentOption
(
Rootless
)
==
0
)
{
XResizeWindow
(
nxagentDisplay
,
nxagentInputWindows
[
pScreen
->
myNum
],
width
,
height
);
}
}
/*
* Set properties for the agent root window.
*/
...
...
@@ -2286,6 +2360,8 @@ FIXME: We should try to restore the previously
(
*
pScreen
->
PositionWindow
)(
WindowTable
[
pScreen
->
myNum
],
0
,
0
);
pRootWinSize
=
&
WindowTable
[
pScreen
->
myNum
]
->
winSize
;
nxagentSetRootClip
(
pScreen
,
1
);
XMoveWindow
(
nxagentDisplay
,
nxagentWindow
(
WindowTable
[
0
]),
...
...
@@ -2293,12 +2369,6 @@ FIXME: We should try to restore the previously
nxagentMoveViewport
(
pScreen
,
0
,
0
);
/*
* Update pointer bounds.
*/
ScreenRestructured
(
pScreen
);
#ifdef TEST
nxagentPrintAgentGeometry
(
"After Resize Screen"
,
"nxagentResizeScreen:"
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -48,7 +48,6 @@ extern ScreenPtr nxagentDefaultScreen;
extern
Pixmap
nxagentPixmapLogo
;
extern
Window
nxagentIconWindow
;
extern
Window
nxagentFullscreenWindow
;
extern
RegionRec
nxagentShadowUpdateRegion
;
...
...
@@ -62,8 +61,6 @@ extern short nxagentShadowUid;
void
nxagentSetScreenInfo
(
ScreenInfo
*
screenInfo
);
void
nxagentSetPixmapFormats
(
ScreenInfo
*
screenInfo
);
void
nxagentPrintGeometry
();
extern
Window
nxagentDefaultWindows
[
MAXSCREENS
];
extern
Window
nxagentInputWindows
[
MAXSCREENS
];
extern
Window
nxagentScreenSaverWindows
[
MAXSCREENS
];
...
...
@@ -90,7 +87,6 @@ extern int nxagentBitsPerPixel(int depth);
void
nxagentSetScreenSaverTime
(
void
);
void
nxagentMinimizeFromFullScreen
(
ScreenPtr
pScreen
);
void
nxagentMaximizeToFullScreen
(
ScreenPtr
pScreen
);
Window
nxagentCreateIconWindow
(
void
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Splash.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Splash.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Split.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Split.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/TestExt.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Trap.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Trap.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Utils.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Visual.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Visual.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -692,73 +692,6 @@ void nxagentRestackWindow(WindowPtr pWin, WindowPtr pOldNextSib)
void
nxagentSwitchFullscreen
(
ScreenPtr
pScreen
,
Bool
switchOn
)
{
XEvent
e
;
if
(
nxagentOption
(
Rootless
)
==
1
)
{
return
;
}
if
(
switchOn
==
0
)
{
nxagentWMDetect
();
/*
* The smart scheduler could be stopped while
* waiting for the reply. In this case we need
* to yield explicitly to avoid to be stuck in
* the dispatch loop forever.
*/
isItTimeToYield
=
1
;
if
(
nxagentWMIsRunning
==
0
)
{
#ifdef WARNING
fprintf
(
stderr
,
"Warning: Can't switch to window mode, no window manager "
"has been detected.
\n
"
);
#endif
return
;
}
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentSwitchFullscreen: Switching to %s mode.
\n
"
,
switchOn
?
"fullscreen"
:
"windowed"
);
#endif
nxagentChangeOption
(
Fullscreen
,
switchOn
);
memset
(
&
e
,
0
,
sizeof
(
e
));
e
.
xclient
.
type
=
ClientMessage
;
e
.
xclient
.
message_type
=
nxagentAtoms
[
13
];
/* _NET_WM_STATE */
e
.
xclient
.
display
=
nxagentDisplay
;
e
.
xclient
.
window
=
nxagentDefaultWindows
[
pScreen
->
myNum
];
e
.
xclient
.
format
=
32
;
e
.
xclient
.
data
.
l
[
0
]
=
nxagentOption
(
Fullscreen
)
?
1
:
0
;
e
.
xclient
.
data
.
l
[
1
]
=
nxagentAtoms
[
14
];
/* _NET_WM_STATE_FULLSCREEN */
XSendEvent
(
nxagentDisplay
,
DefaultRootWindow
(
nxagentDisplay
),
False
,
SubstructureRedirectMask
,
&
e
);
if
(
switchOn
==
1
)
{
nxagentFullscreenWindow
=
nxagentDefaultWindows
[
pScreen
->
myNum
];
nxagentGrabPointerAndKeyboard
(
NULL
);
}
else
{
nxagentFullscreenWindow
=
None
;
nxagentUngrabPointerAndKeyboard
(
NULL
);
}
}
void
nxagentSwitchAllScreens
(
ScreenPtr
pScreen
,
Bool
switchOn
)
{
Window
w
;
XSetWindowAttributes
attributes
;
unsigned
long
valuemask
;
...
...
@@ -788,8 +721,6 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
XUnmapWindow
(
nxagentDisplay
,
w
);
XChangeWindowAttributes
(
nxagentDisplay
,
w
,
valuemask
,
&
attributes
);
XReparentWindow
(
nxagentDisplay
,
w
,
DefaultRootWindow
(
nxagentDisplay
),
0
,
0
);
if
(
switchOn
)
{
/*
...
...
@@ -807,7 +738,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
for
(
i
=
0
;
i
<
100
&&
nxagentWMIsRunning
;
i
++
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentSwitch
AllScreens
: WARNING! Going to wait for the ReparentNotify event.
\n
"
);
fprintf
(
stderr
,
"nxagentSwitch
Fullscreen
: WARNING! Going to wait for the ReparentNotify event.
\n
"
);
#endif
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
w
,
ReparentNotify
,
&
e
))
...
...
@@ -836,8 +767,6 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
*/
nxagentChangeOption
(
Fullscreen
,
True
);
nxagentChangeOption
(
AllScreens
,
True
);
/*
* Save the window-mode configuration.
...
...
@@ -916,9 +845,9 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
*/
#ifdef WARNING
fprintf
(
stderr
,
"nxagentSwitch
AllScreens
: WARNING! Expected ReparentNotify event missing.
\n
"
);
fprintf
(
stderr
,
"nxagentSwitch
Fullscreen
: WARNING! Expected ReparentNotify event missing.
\n
"
);
#endif
nxagentWMIsRunning
=
False
;
attributes
.
override_redirect
=
False
;
XChangeWindowAttributes
(
nxagentDisplay
,
w
,
valuemask
,
&
attributes
);
...
...
@@ -932,6 +861,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
* It could be necessary:
* - To restore screensaver.
* - To set or reset nxagentForceBackingStore flag.
* - To grab keyboard.
* - To propagate device settings to the X server if no WM is running.
*/
...
...
@@ -940,10 +870,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
*/
nxagentChangeOption
(
Fullscreen
,
False
);
nxagentChangeOption
(
AllScreens
,
False
);
XDestroyWindow
(
nxagentDisplay
,
nxagentIconWindow
);
nxagentIconWindow
=
nxagentFullscreenWindow
=
None
;
if
(
nxagentOption
(
DesktopResize
)
==
1
)
...
...
@@ -957,19 +884,8 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
}
}
if
(
nxagentOption
(
WMBorderWidth
)
>
0
&&
nxagentOption
(
WMTitleHeight
)
>
0
)
{
nxagentChangeOption
(
X
,
nxagentOption
(
SavedX
)
-
nxagentOption
(
WMBorderWidth
));
nxagentChangeOption
(
Y
,
nxagentOption
(
SavedY
)
-
nxagentOption
(
WMTitleHeight
));
}
else
{
nxagentChangeOption
(
X
,
nxagentOption
(
SavedX
));
nxagentChangeOption
(
Y
,
nxagentOption
(
SavedY
));
}
nxagentChangeOption
(
X
,
nxagentOption
(
SavedX
));
nxagentChangeOption
(
Y
,
nxagentOption
(
SavedY
));
nxagentChangeOption
(
Width
,
nxagentOption
(
SavedWidth
));
nxagentChangeOption
(
Height
,
nxagentOption
(
SavedHeight
));
...
...
@@ -993,7 +909,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
XMoveResizeWindow
(
nxagentDisplay
,
nxagentInputWindows
[
0
],
0
,
0
,
nxagentOption
(
Width
),
nxagentOption
(
Height
));
nxagentSetPrintGeometry
(
pScreen
->
myNum
);
nxagentSetPrintGeometry
(
pScreen
->
myNum
);
}
#ifdef VIEWPORT_FRAME
...
...
@@ -2495,11 +2411,6 @@ void nxagentMapDefaultWindows()
#endif
XMapWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
pScreen
->
myNum
]);
if
(
nxagentOption
(
Fullscreen
)
==
1
&&
nxagentWMIsRunning
==
1
)
{
nxagentMaximizeToFullScreen
(
pScreen
);
}
}
/*
...
...
@@ -2986,13 +2897,6 @@ FIXME: Do we need to set save unders attribute here?
XSizeHints
*
props
,
hints
;
unsigned
char
*
data
=
NULL
;
#ifdef _XSERVER64
unsigned
char
*
data64
=
NULL
;
unsigned
int
i
;
#endif
hints
.
flags
=
0
;
ret
=
GetWindowProperty
(
pWin
,
...
...
@@ -3001,13 +2905,10 @@ FIXME: Do we need to set save unders attribute here?
False
,
XA_WM_SIZE_HINTS
,
&
type
,
&
format
,
&
nItems
,
&
bytesLeft
,
&
data
);
/*
* 72 is the number of bytes returned by
* sizeof(XSizeHints) on 32 bit platforms.
*/
props
=
(
XSizeHints
*
)
data
;
if
(
ret
==
Success
&&
((
format
>>
3
)
*
nItems
)
==
72
&&
((
format
>>
3
)
*
nItems
)
==
sizeof
(
XSizeHints
)
&&
bytesLeft
==
0
&&
type
==
XA_WM_SIZE_HINTS
)
{
...
...
@@ -3016,30 +2917,6 @@ FIXME: Do we need to set save unders attribute here?
(
void
*
)
pWin
,
pWin
->
drawable
.
id
,
nxagentWindow
(
pWin
));
#endif
#ifdef _XSERVER64
data64
=
(
unsigned
char
*
)
malloc
(
sizeof
(
XSizeHints
)
+
4
);
for
(
i
=
0
;
i
<
4
;
i
++
)
{
*
(
data64
+
i
)
=
*
(
data
+
i
);
}
*
(((
int
*
)
data64
)
+
1
)
=
0
;
for
(
i
=
8
;
i
<
sizeof
(
XSizeHints
)
+
4
;
i
++
)
{
*
(
data64
+
i
)
=
*
(
data
+
i
-
4
);
}
props
=
(
XSizeHints
*
)
data64
;
#else
props
=
(
XSizeHints
*
)
data
;
#endif
/* _XSERVER64 */
hints
=
*
props
;
}
else
...
...
@@ -3058,15 +2935,6 @@ FIXME: Do we need to set save unders attribute here?
XSetWMNormalHints
(
nxagentDisplay
,
nxagentWindow
(
pWin
),
&
hints
);
#ifdef _XSERVER64
if
(
data64
!=
NULL
)
{
free
(
data64
);
}
#endif
}
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Windows.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -222,8 +222,6 @@ void nxagentSetTopLevelEventMask(WindowPtr pWin);
void
nxagentSwitchFullscreen
(
ScreenPtr
pScreen
,
Bool
switchOn
);
void
nxagentSwitchAllScreens
(
ScreenPtr
pScreen
,
Bool
switchOn
);
void
nxagentMoveViewport
(
ScreenPtr
pScreen
,
int
hShift
,
int
vShift
);
#ifdef VIEWPORT_FRAME
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXdamage.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXdamage.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -513,6 +513,17 @@ Dispatch(void)
* completed. We can now handle our clients.
*/
if
(
serverGeneration
>
nxagentMaxAllowedResets
)
{
#ifdef NX_DEBUG_INPUT
fprintf
(
stderr
,
"Session: Session started at '%s' timestamp [%lu].
\n
"
,
GetTimeAsString
(),
GetTimeInMillis
());
#else
fprintf
(
stderr
,
"Session: Session started at '%s'.
\n
"
,
GetTimeAsString
());
#endif
nxagentSessionState
=
SESSION_UP
;
}
#ifdef XKB
nxagentInitXkbWrapper
();
...
...
@@ -596,21 +607,6 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
clientReady
[
1
]
=
NXAGENT_WAKEUP
;
}
if
(
serverGeneration
>
nxagentMaxAllowedResets
&&
nxagentSessionState
==
SESSION_STARTING
&&
(
nxagentOption
(
Xdmcp
)
==
0
||
nxagentXdmcpUp
==
1
))
{
#ifdef NX_DEBUG_INPUT
fprintf
(
stderr
,
"Session: Session started at '%s' timestamp [%lu].
\n
"
,
GetTimeAsString
(),
GetTimeInMillis
());
#else
fprintf
(
stderr
,
"Session: Session started at '%s'.
\n
"
,
GetTimeAsString
());
#endif
nxagentSessionState
=
SESSION_UP
;
}
#ifdef BLOCKS
fprintf
(
stderr
,
"[End dispatch]
\n
"
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -513,6 +513,17 @@ Dispatch(void)
* completed. We can now handle our clients.
*/
if (serverGeneration > nxagentMaxAllowedResets)
{
#ifdef NX_DEBUG_INPUT
fprintf(stderr, "Session: Session started at '%s' timestamp [%lu].\n", GetTimeAsString(), GetTimeInMillis());
#else
fprintf(stderr, "Session: Session started at '%s'.\n", GetTimeAsString());
#endif
nxagentSessionState = SESSION_UP;
}
#ifdef XKB
nxagentInitXkbWrapper();
...
...
@@ -596,21 +607,6 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
clientReady[1] = NXAGENT_WAKEUP;
}
if (serverGeneration > nxagentMaxAllowedResets &&
nxagentSessionState == SESSION_STARTING &&
(nxagentOption(Xdmcp) == 0 || nxagentXdmcpUp == 1))
{
#ifdef NX_DEBUG_INPUT
fprintf(stderr, "Session: Session started at '%s' timestamp [%lu].\n",
GetTimeAsString(), GetTimeInMillis());
#else
fprintf(stderr, "Session: Session started at '%s'.\n",
GetTimeAsString());
#endif
nxagentSessionState = SESSION_UP;
}
#ifdef BLOCKS
fprintf(stderr, "[End dispatch]\n");
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXdixfonts.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXevents.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXevents.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXextension.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXextension.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglxext.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglxext.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglyph.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglyph.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglyphcurs.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglyphcurs.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglyphstr.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXglyphstr.h.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmiexpose.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmiexpose.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmiglyph.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmiglyph.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmitrap.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmitrap.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmiwindow.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXmiwindow.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -62,7 +62,6 @@
#include "Screen.h"
#include "Pixmaps.h"
#include "Drawable.h"
#include "Render.h"
#define PANIC
#define WARNING
...
...
@@ -873,9 +872,6 @@ AllocatePicture (ScreenPtr pScreen)
else
ppriv
->
ptr
=
(
pointer
)
NULL
;
}
nxagentPicturePriv
(
pPicture
)
->
picture
=
0
;
return
pPicture
;
}
...
...
@@ -1067,49 +1063,7 @@ static void initGradient(SourcePictPtr pGradient, int stopCount,
static
PicturePtr
createSourcePicture
(
void
)
{
PicturePtr
pPicture
;
extern
int
nxagentPicturePrivateIndex
;
unsigned
int
totalPictureSize
;
DevUnion
*
ppriv
;
char
*
privPictureRecAddr
;
int
i
;
/*
* Compute size of entire PictureRect, plus privates.
*/
totalPictureSize
=
sizeof
(
PictureRec
)
+
picturePrivateCount
*
sizeof
(
DevUnion
)
+
sizeof
(
nxagentPrivPictureRec
);
pPicture
=
(
PicturePtr
)
xalloc
(
totalPictureSize
);
if
(
pPicture
!=
NULL
)
{
ppriv
=
(
DevUnion
*
)
(
pPicture
+
1
);
for
(
i
=
0
;
i
<
picturePrivateCount
;
++
i
)
{
/*
* Other privates are inaccessible.
*/
ppriv
[
i
].
ptr
=
NULL
;
}
privPictureRecAddr
=
(
char
*
)
&
ppriv
[
picturePrivateCount
];
ppriv
[
nxagentPicturePrivateIndex
].
ptr
=
(
pointer
)
privPictureRecAddr
;
pPicture
->
devPrivates
=
ppriv
;
nxagentPicturePriv
(
pPicture
)
->
picture
=
0
;
}
pPicture
=
(
PicturePtr
)
xalloc
(
sizeof
(
PictureRec
));
pPicture
->
pDrawable
=
0
;
pPicture
->
pFormat
=
0
;
pPicture
->
pNext
=
0
;
...
...
@@ -1743,10 +1697,6 @@ FreePicture (pointer value,
if
(
--
pPicture
->
refcnt
==
0
)
{
#ifdef NXAGENT_SERVER
nxagentDestroyPicture
(
pPicture
);
#endif
if
(
pPicture
->
transform
)
xfree
(
pPicture
->
transform
);
if
(
!
pPicture
->
pDrawable
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -62,7 +62,6 @@
#include "Screen.h"
#include "Pixmaps.h"
#include "Drawable.h"
#include "Render.h"
#define PANIC
#define WARNING
...
...
@@ -873,9 +872,6 @@ AllocatePicture (ScreenPtr pScreen)
else
ppriv->ptr = (pointer)NULL;
}
nxagentPicturePriv(pPicture) -> picture = 0;
return pPicture;
}
...
...
@@ -1067,49 +1063,7 @@ static void initGradient(SourcePictPtr pGradient, int stopCount,
static PicturePtr createSourcePicture(void)
{
PicturePtr pPicture;
extern int nxagentPicturePrivateIndex;
unsigned int totalPictureSize;
DevUnion *ppriv;
char *privPictureRecAddr;
int i;
/*
* Compute size of entire PictureRect, plus privates.
*/
totalPictureSize = sizeof(PictureRec) +
picturePrivateCount * sizeof(DevUnion) +
sizeof(nxagentPrivPictureRec);
pPicture = (PicturePtr) xalloc(totalPictureSize);
if (pPicture != NULL)
{
ppriv = (DevUnion *) (pPicture + 1);
for (i = 0; i < picturePrivateCount; ++i)
{
/*
* Other privates are inaccessible.
*/
ppriv[i].ptr = NULL;
}
privPictureRecAddr = (char *) &ppriv[picturePrivateCount];
ppriv[nxagentPicturePrivateIndex].ptr = (pointer) privPictureRecAddr;
pPicture -> devPrivates = ppriv;
nxagentPicturePriv(pPicture) -> picture = 0;
}
pPicture = (PicturePtr) xalloc(sizeof(PictureRec));
pPicture->pDrawable = 0;
pPicture->pFormat = 0;
pPicture->pNext = 0;
...
...
@@ -1743,10 +1697,6 @@ FreePicture (pointer value,
if (--pPicture->refcnt == 0)
{
#ifdef NXAGENT_SERVER
nxagentDestroyPicture(pPicture);
#endif
if (pPicture->transform)
xfree (pPicture->transform);
if (!pPicture->pDrawable) {
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXproperty.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXproperty.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXrandr.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXrandr.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXrender.c
View file @
d30ef034
...
...
@@ -26,7 +26,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -116,6 +116,7 @@ int nxagentCursorSaveRenderInfo(ScreenPtr, CursorPtr);
void
nxagentCursorPostSaveRenderInfo
(
CursorPtr
,
ScreenPtr
,
PicturePtr
,
int
,
int
);
int
nxagentRenderRealizeCursor
(
ScreenPtr
,
CursorPtr
);
int
nxagentCreatePicture
(
PicturePtr
,
Mask
);
void
nxagentDestroyPicture
(
PicturePtr
pPicture
);
void
nxagentChangePicture
(
PicturePtr
,
Mask
);
int
nxagentChangePictureClip
(
PicturePtr
,
int
,
int
,
xRectangle
*
,
int
,
int
);
void
nxagentComposite
(
CARD8
,
PicturePtr
,
PicturePtr
,
PicturePtr
,
INT16
,
INT16
,
...
...
@@ -131,28 +132,6 @@ void nxagentSetPictureFilter(PicturePtr pPicture, char *filter, int name_size,
void
nxagentTrapezoids
(
CARD8
op
,
PicturePtr
pSrc
,
PicturePtr
pDst
,
PictFormatPtr
maskFormat
,
INT16
xSrc
,
INT16
ySrc
,
int
ntrap
,
xTrapezoid
*
traps
);
void
nxagentRenderCreateSolidFill
(
PicturePtr
pPicture
,
xRenderColor
*
color
);
void
nxagentRenderCreateLinearGradient
(
PicturePtr
pPicture
,
xPointFixed
*
p1
,
xPointFixed
*
p2
,
int
nStops
,
xFixed
*
stops
,
xRenderColor
*
colors
);
void
nxagentRenderCreateRadialGradient
(
PicturePtr
pPicture
,
xPointFixed
*
inner
,
xPointFixed
*
outer
,
xFixed
innerRadius
,
xFixed
outerRadius
,
int
nStops
,
xFixed
*
stops
,
xRenderColor
*
colors
);
void
nxagentRenderCreateConicalGradient
(
PicturePtr
pPicture
,
xPointFixed
*
center
,
xFixed
angle
,
int
nStops
,
xFixed
*
stops
,
xRenderColor
*
colors
);
/*
* The void pointer is actually a XGlyphElt8.
*/
...
...
@@ -844,6 +823,8 @@ ProcRenderFreePicture (ClientPtr client)
VERIFY_PICTURE
(
pPicture
,
stuff
->
picture
,
client
,
SecurityDestroyAccess
,
RenderErrBase
+
BadPicture
);
nxagentDestroyPicture
(
pPicture
);
FreeResource
(
stuff
->
picture
,
RT_NONE
);
return
(
client
->
noClientException
);
}
...
...
@@ -945,16 +926,9 @@ ProcRenderComposite (ClientPtr client)
RenderErrBase
+
BadPicture
);
VERIFY_ALPHA
(
pMask
,
stuff
->
mask
,
client
,
SecurityReadAccess
,
RenderErrBase
+
BadPicture
);
/*
FIXME: Imported change from newest version of Xorg. Changed pSrc to pDst.
if
((
pSrc
->
pDrawable
&&
pSrc
->
pDrawable
->
pScreen
!=
pDst
->
pDrawable
->
pScreen
)
||
(
pMask
&&
pMask
->
pDrawable
&&
pSrc
->
pDrawable
->
pScreen
!=
pMask
->
pDrawable
->
pScreen
))
return
BadMatch
;
*/
if
((
pSrc
->
pDrawable
&&
pSrc
->
pDrawable
->
pScreen
!=
pDst
->
pDrawable
->
pScreen
)
||
(
pMask
&&
pMask
->
pDrawable
&&
pDst
->
pDrawable
->
pScreen
!=
pMask
->
pDrawable
->
pScreen
))
return
BadMatch
;
ValidatePicture
(
pSrc
);
if
(
pMask
)
...
...
@@ -2362,11 +2336,6 @@ static int ProcRenderCreateSolidFill(ClientPtr client)
pPicture
=
CreateSolidPicture
(
stuff
->
pid
,
&
stuff
->
color
,
&
error
);
if
(
!
pPicture
)
return
error
;
/* AGENT SERVER */
nxagentRenderCreateSolidFill
(
pPicture
,
&
stuff
->
color
);
/* AGENT SERVER */
if
(
!
AddResource
(
stuff
->
pid
,
PictureType
,
(
pointer
)
pPicture
))
return
BadAlloc
;
return
Success
;
...
...
@@ -2398,12 +2367,6 @@ static int ProcRenderCreateLinearGradient (ClientPtr client)
stuff
->
nStops
,
stops
,
colors
,
&
error
);
if
(
!
pPicture
)
return
error
;
/* AGENT SERVER */
nxagentRenderCreateLinearGradient
(
pPicture
,
&
stuff
->
p1
,
&
stuff
->
p2
,
stuff
->
nStops
,
stops
,
colors
);
/* AGENT SERVER */
if
(
!
AddResource
(
stuff
->
pid
,
PictureType
,
(
pointer
)
pPicture
))
return
BadAlloc
;
return
Success
;
...
...
@@ -2434,14 +2397,6 @@ static int ProcRenderCreateRadialGradient (ClientPtr client)
stuff
->
nStops
,
stops
,
colors
,
&
error
);
if
(
!
pPicture
)
return
error
;
/* AGENT SERVER */
nxagentRenderCreateRadialGradient
(
pPicture
,
&
stuff
->
inner
,
&
stuff
->
outer
,
stuff
->
inner_radius
,
stuff
->
outer_radius
,
stuff
->
nStops
,
stops
,
colors
);
/* AGENT SERVER */
if
(
!
AddResource
(
stuff
->
pid
,
PictureType
,
(
pointer
)
pPicture
))
return
BadAlloc
;
return
Success
;
...
...
@@ -2471,13 +2426,6 @@ static int ProcRenderCreateConicalGradient (ClientPtr client)
stuff
->
nStops
,
stops
,
colors
,
&
error
);
if
(
!
pPicture
)
return
error
;
/* AGENT SERVER */
nxagentRenderCreateConicalGradient
(
pPicture
,
&
stuff
->
center
,
stuff
->
angle
,
stuff
->
nStops
,
stops
,
colors
);
/* AGENT SERVER */
if
(
!
AddResource
(
stuff
->
pid
,
PictureType
,
(
pointer
)
pPicture
))
return
BadAlloc
;
return
Success
;
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXrender.c.NX.original
View file @
d30ef034
...
...
@@ -26,7 +26,7 @@
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -116,6 +116,7 @@ int nxagentCursorSaveRenderInfo(ScreenPtr, CursorPtr);
void nxagentCursorPostSaveRenderInfo(CursorPtr, ScreenPtr, PicturePtr, int, int);
int nxagentRenderRealizeCursor(ScreenPtr, CursorPtr);
int nxagentCreatePicture(PicturePtr, Mask);
void nxagentDestroyPicture(PicturePtr pPicture);
void nxagentChangePicture(PicturePtr, Mask);
int nxagentChangePictureClip(PicturePtr, int, int, xRectangle *, int, int);
void nxagentComposite(CARD8, PicturePtr, PicturePtr, PicturePtr, INT16, INT16,
...
...
@@ -131,28 +132,6 @@ void nxagentSetPictureFilter(PicturePtr pPicture, char *filter, int name_size,
void nxagentTrapezoids(CARD8 op, PicturePtr pSrc, PicturePtr pDst, PictFormatPtr maskFormat,
INT16 xSrc, INT16 ySrc, int ntrap, xTrapezoid *traps);
void nxagentRenderCreateSolidFill(PicturePtr pPicture, xRenderColor *color);
void nxagentRenderCreateLinearGradient(PicturePtr pPicture, xPointFixed *p1,
xPointFixed *p2, int nStops,
xFixed *stops,
xRenderColor *colors);
void nxagentRenderCreateRadialGradient(PicturePtr pPicture, xPointFixed *inner,
xPointFixed *outer,
xFixed innerRadius,
xFixed outerRadius,
int nStops,
xFixed *stops,
xRenderColor *colors);
void nxagentRenderCreateConicalGradient(PicturePtr pPicture,
xPointFixed *center,
xFixed angle, int nStops,
xFixed *stops,
xRenderColor *colors);
/*
* The void pointer is actually a XGlyphElt8.
*/
...
...
@@ -844,6 +823,8 @@ ProcRenderFreePicture (ClientPtr client)
VERIFY_PICTURE (pPicture, stuff->picture, client, SecurityDestroyAccess,
RenderErrBase + BadPicture);
nxagentDestroyPicture(pPicture);
FreeResource (stuff->picture, RT_NONE);
return(client->noClientException);
}
...
...
@@ -945,16 +926,9 @@ ProcRenderComposite (ClientPtr client)
RenderErrBase + BadPicture);
VERIFY_ALPHA (pMask, stuff->mask, client, SecurityReadAccess,
RenderErrBase + BadPicture);
/*
FIXME: Imported change from newest version of Xorg. Changed pSrc to pDst.
if ((pSrc->pDrawable && pSrc->pDrawable->pScreen != pDst->pDrawable->pScreen) ||
(pMask && pMask->pDrawable && pSrc->pDrawable->pScreen != pMask->pDrawable->pScreen))
return BadMatch;
*/
if ((pSrc->pDrawable && pSrc->pDrawable->pScreen != pDst->pDrawable->pScreen) ||
(pMask && pMask->pDrawable && pDst->pDrawable->pScreen != pMask->pDrawable->pScreen))
return BadMatch;
ValidatePicture (pSrc);
if (pMask)
...
...
@@ -2362,11 +2336,6 @@ static int ProcRenderCreateSolidFill(ClientPtr client)
pPicture = CreateSolidPicture(stuff->pid, &stuff->color, &error);
if (!pPicture)
return error;
/* AGENT SERVER */
nxagentRenderCreateSolidFill(pPicture, &stuff -> color);
/* AGENT SERVER */
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
return BadAlloc;
return Success;
...
...
@@ -2398,12 +2367,6 @@ static int ProcRenderCreateLinearGradient (ClientPtr client)
stuff->nStops, stops, colors, &error);
if (!pPicture)
return error;
/* AGENT SERVER */
nxagentRenderCreateLinearGradient(pPicture, &stuff->p1, &stuff->p2,
stuff->nStops, stops, colors);
/* AGENT SERVER */
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
return BadAlloc;
return Success;
...
...
@@ -2434,14 +2397,6 @@ static int ProcRenderCreateRadialGradient (ClientPtr client)
stuff->nStops, stops, colors, &error);
if (!pPicture)
return error;
/* AGENT SERVER */
nxagentRenderCreateRadialGradient(pPicture, &stuff->inner, &stuff->outer,
stuff->inner_radius,
stuff->outer_radius,
stuff->nStops, stops, colors);
/* AGENT SERVER */
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
return BadAlloc;
return Success;
...
...
@@ -2471,13 +2426,6 @@ static int ProcRenderCreateConicalGradient (ClientPtr client)
stuff->nStops, stops, colors, &error);
if (!pPicture)
return error;
/* AGENT SERVER */
nxagentRenderCreateConicalGradient(pPicture, &stuff->center,
stuff->angle, stuff->nStops, stops,
colors);
/* AGENT SERVER */
if (!AddResource (stuff->pid, PictureType, (pointer)pPicture))
return BadAlloc;
return Success;
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXresource.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXresource.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXshm.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXshm.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXwindow.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXwindow.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXxvdisp.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/X/NXxvdisp.c.NX.original
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/nxagent.xpm
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/nxmissing.xpm
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/os2Stub.c
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nx-X11/programs/Xserver/hw/nxagent/screensaver
View file @
d30ef034
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
11 NoMachine, http://www.nomachine.com/.
*/
/* Copyright (c) 2001, 20
03 NoMachine, http://www.nomachine.com.
*/
/* */
/* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
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