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
c70adf72
Commit
c70adf72
authored
Nov 13, 2011
by
Reinhard Tartler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imported nxcompshad-3.4.0-3.tar.gz
Summary: Imported nxcompshad-3.4.0-3.tar.gz Keywords: Imported nxcompshad-3.4.0-3.tar.gz into Git repository
parent
2208f4f9
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
83 additions
and
31 deletions
+83
-31
CHANGELOG
nxcompshad/CHANGELOG
+13
-0
Core.cpp
nxcompshad/Core.cpp
+1
-1
Core.h
nxcompshad/Core.h
+1
-1
Input.cpp
nxcompshad/Input.cpp
+1
-1
Input.h
nxcompshad/Input.h
+1
-1
LICENSE
nxcompshad/LICENSE
+1
-1
Logger.cpp
nxcompshad/Logger.cpp
+1
-1
Logger.h
nxcompshad/Logger.h
+1
-1
Makefile.in
nxcompshad/Makefile.in
+1
-1
Manager.cpp
nxcompshad/Manager.cpp
+1
-1
Manager.h
nxcompshad/Manager.h
+1
-1
Misc.h
nxcompshad/Misc.h
+1
-1
Poller.h
nxcompshad/Poller.h
+1
-1
Regions.h
nxcompshad/Regions.h
+1
-1
Shadow.cpp
nxcompshad/Shadow.cpp
+1
-1
Shadow.cpp.orig
nxcompshad/Shadow.cpp.orig
+1
-1
Shadow.h
nxcompshad/Shadow.h
+1
-1
Updater.cpp
nxcompshad/Updater.cpp
+1
-1
Updater.h
nxcompshad/Updater.h
+1
-1
Win.cpp
nxcompshad/Win.cpp
+1
-1
Win.h
nxcompshad/Win.h
+1
-1
X11.cpp
nxcompshad/X11.cpp
+49
-10
X11.h
nxcompshad/X11.h
+1
-1
No files found.
nxcompshad/CHANGELOG
View file @
c70adf72
ChangeLog:
nxcompshad-3.4.0-3
- Updated copyright to year 2010.
nxcompshad-3.4.0-2
- Fixed TR08G02256. Now the Shadow session is shown correctly with
MIT-SHM extension disabled.
- Improved updateShadowFrameBuffer() and ~Poller() functions.
- Avoided memory leak.
nxcompshad-3.4.0-1
- Opened the 3.4.0 branch based on nxcompshad-3.3.0-3.
...
...
nxcompshad/Core.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Core.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Input.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Input.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/LICENSE
View file @
c70adf72
Copyright (c) 2001, 20
09
NoMachine - http://www.nomachine.com/.
Copyright (c) 2001, 20
10
NoMachine - http://www.nomachine.com/.
NXCOMPSHAD and NX extensions to X are copyright of NoMachine.
...
...
nxcompshad/Logger.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07 NoMachine, http://www.nomachine.com.
*/
/* Copyright (c) 2001, 20
10 NoMachine, http://www.nomachine.com/.
*/
/* */
/* NXCOMP, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Logger.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07 NoMachine, http://www.nomachine.com.
*/
/* Copyright (c) 2001, 20
10 NoMachine, http://www.nomachine.com/.
*/
/* */
/* NXCOMP, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Makefile.in
View file @
c70adf72
############################################################################
# #
# Copyright (c) 2001, 20
05 NoMachine, http://www.nomachine.com.
#
# Copyright (c) 2001, 20
10 NoMachine, http://www.nomachine.com/.
#
# #
# NXCOMP, NX protocol compression and NX extensions to this software #
# are copyright of NoMachine. Redistribution and use of the present #
...
...
nxcompshad/Manager.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Manager.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Misc.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Poller.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Regions.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Shadow.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
09 NoMachine, http://www.nomachine.com.
*/
/* Copyright (c) 2001, 20
10 NoMachine, http://www.nomachine.com/.
*/
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Shadow.cpp.orig
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07 NoMachine, http://www.nomachine.com.
*/
/* Copyright (c) 2001, 20
10 NoMachine, http://www.nomachine.com/.
*/
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Shadow.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07 NoMachine, http://www.nomachine.com.
*/
/* Copyright (c) 2001, 20
10 NoMachine, http://www.nomachine.com/.
*/
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Updater.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Updater.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Win.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/Win.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
nxcompshad/X11.cpp
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
09
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
...
...
@@ -127,7 +127,7 @@ Poller::~Poller()
XCloseDisplay
(
display_
);
}
if
(
tmpBuffer_
!=
NULL
&&
shmExtension_
==
1
&&
damageExtension_
==
1
)
if
(
tmpBuffer_
!=
NULL
&&
shmExtension_
!=
-
1
&&
damageExtension_
==
1
)
{
XFree
(
tmpBuffer_
);
...
...
@@ -181,13 +181,21 @@ int Poller::updateShadowFrameBuffer(void)
return
-
1
;
}
return
1
;
}
else
{
return
0
;
image_
=
XGetImage
(
display_
,
DefaultRootWindow
(
display_
),
0
,
0
,
width_
,
height_
,
AllPlanes
,
ZPixmap
);
if
(
image_
==
NULL
)
{
logDebug
(
"Poller::updateShadowFrameBuffer"
,
"XGetImage failed!"
);
return
-
1
;
}
}
return
1
;
}
char
*
Poller
::
getRect
(
XRectangle
r
)
...
...
@@ -255,6 +263,8 @@ char *Poller::getRect(XRectangle r)
}
XFree
(
image_
);
image_
=
NULL
;
}
return
tmpBuffer_
;
...
...
@@ -1469,8 +1479,6 @@ void Poller::handleDamageNotify(XEvent *X)
void
Poller
::
updateDamagedAreas
(
void
)
{
if
(
shmExtension_
==
1
)
{
BOX
*
boxPtr
;
XRectangle
rectangle
;
...
...
@@ -1482,18 +1490,43 @@ void Poller::updateDamagedAreas(void)
{
boxPtr
=
lastUpdatedRegion_
->
rects
+
i
;
if
(
shmExtension_
==
1
)
{
image_
->
width
=
boxPtr
->
x2
-
boxPtr
->
x1
;
image_
->
height
=
boxPtr
->
y2
-
boxPtr
->
y1
;
image_
->
bytes_per_line
=
ROUNDUP
((
image_
->
bits_per_pixel
*
image_
->
width
),
image_
->
bitmap_pad
);
image_
->
bytes_per_line
=
ROUNDUP
((
image_
->
bits_per_pixel
*
image_
->
width
),
image_
->
bitmap_pad
);
if
(
XShmGetImage
(
display_
,
DefaultRootWindow
(
display_
),
image_
,
boxPtr
->
x1
,
boxPtr
->
y1
,
AllPlanes
)
==
0
)
{
logDebug
(
"Poller::updateDamagedAreas"
,
"XShmGetImage failed!"
);
if
(
XShmGetImage
(
display_
,
DefaultRootWindow
(
display_
),
image_
,
boxPtr
->
x1
,
boxPtr
->
y1
,
AllPlanes
)
==
0
)
return
;
}
}
else
if
(
shmExtension_
==
0
)
{
logDebug
(
"Poller::getRect"
,
"XShmGetImage failed!"
);
image_
=
XGetImage
(
display_
,
DefaultRootWindow
(
display_
),
boxPtr
->
x1
,
boxPtr
->
y1
,
boxPtr
->
x2
-
boxPtr
->
x1
,
boxPtr
->
y2
-
boxPtr
->
y1
,
AllPlanes
,
ZPixmap
);
if
(
image_
==
NULL
)
{
logDebug
(
"Poller::updateDamagedAreas"
,
"XGetImage failed!"
);
return
;
}
image_
->
width
=
boxPtr
->
x2
-
boxPtr
->
x1
;
image_
->
height
=
boxPtr
->
y2
-
boxPtr
->
y1
;
image_
->
bytes_per_line
=
ROUNDUP
((
image_
->
bits_per_pixel
*
image_
->
width
),
image_
->
bitmap_pad
);
}
rectangle
.
height
=
1
;
rectangle
.
width
=
image_
->
width
;
rectangle
.
x
=
boxPtr
->
x1
;
...
...
@@ -1505,6 +1538,12 @@ void Poller::updateDamagedAreas(void)
rectangle
.
y
++
;
}
if
(
shmExtension_
!=
1
)
{
XDestroyImage
(
image_
);
image_
=
NULL
;
}
}
...
...
nxcompshad/X11.h
View file @
c70adf72
/**************************************************************************/
/* */
/* Copyright (c) 2001, 20
07
NoMachine, http://www.nomachine.com/. */
/* Copyright (c) 2001, 20
10
NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, 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