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
658d07e9
Commit
658d07e9
authored
Feb 10, 2015
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent sending COMPOUND_TEXT (107_nxagent_clipboard-compound-text+small-bed-sheets.full.patch).
Do not send COMPOUND_TEXT to client. Originally contributed by FreeNX Team (dimbor).
parent
9674c434
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
51 deletions
+11
-51
107_nxagent_clipboard-compound-text+small-bed-sheets.full.patch
...agent_clipboard-compound-text+small-bed-sheets.full.patch
+0
-47
series
debian/patches/series
+0
-1
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+4
-3
Image.c
nx-X11/programs/Xserver/hw/nxagent/Image.c
+7
-0
No files found.
debian/patches/107_nxagent_clipboard-compound-text+small-bed-sheets.full.patch
deleted
100644 → 0
View file @
9674c434
Description: Prevent sending COMPOUND_TEXT
Do not send COMPOUND_TEXT to client.
.
Originally contributed by FreeNX Team (dimbor).
Forwarded: not-yet
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1226,10 +1226,11 @@
Atom xa_STRING[4];
xEvent x;
+ /* --- Order changed by dimbor (prevent sending COMPOUND_TEXT to client --- */
xa_STRING[0] = XA_STRING;
- xa_STRING[1] = clientTEXT;
- xa_STRING[2] = clientCOMPOUND_TEXT;
- xa_STRING[3] = clientUTF8_STRING;
+ xa_STRING[1] = clientUTF8_STRING;
+ xa_STRING[2] = clientTEXT;
+ xa_STRING[3] = clientCOMPOUND_TEXT;
ChangeWindowProperty(pWin,
property,
--- a/nx-X11/programs/Xserver/hw/nxagent/Image.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Image.c
@@ -644,6 +644,10 @@
pDrawable -> depth != 1 &&
nxagentOption(DeferLevel) >= 1)
{
+ /* -- changed by dimbor (small "bed-sheets" never need be prevented - always put) --*/
+ if (dstHeight > 16)
+ {
+ /* -------------------------------------------------------------------------------- */
#ifdef TEST
fprintf(stderr, "nxagentPutImage: WARNING! Prevented operation on region [%d,%d,%d,%d] "
"for drawable at [%p] with drawable pixmap.\n", pRegion -> extents.x1,
@@ -654,6 +658,9 @@
nxagentMarkCorruptedRegion(pDrawable, pRegion);
goto nxagentPutImageEnd;
+ /* --- changed by dimbor ---*/
+ }
+ /* ------------------------- */
}
if (pDrawable -> type == DRAWABLE_WINDOW &&
debian/patches/series
View file @
658d07e9
107_nxagent_clipboard-compound-text+small-bed-sheets.full.patch
108_nxagent_wine-close-delay.full.patch
110_nxagent_createpixmap-bounds-check.full.patch
200_nxagent_check-binary-x2go-flavour.full.patch
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
658d07e9
...
...
@@ -1226,10 +1226,11 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
Atom
xa_STRING
[
4
];
xEvent
x
;
/* --- Order changed by dimbor (prevent sending COMPOUND_TEXT to client --- */
xa_STRING
[
0
]
=
XA_STRING
;
xa_STRING
[
1
]
=
client
TEXT
;
xa_STRING
[
2
]
=
client
COMPOUND_
TEXT
;
xa_STRING
[
3
]
=
client
UTF8_STRING
;
xa_STRING
[
1
]
=
client
UTF8_STRING
;
xa_STRING
[
2
]
=
clientTEXT
;
xa_STRING
[
3
]
=
client
COMPOUND_TEXT
;
ChangeWindowProperty
(
pWin
,
property
,
...
...
nx-X11/programs/Xserver/hw/nxagent/Image.c
View file @
658d07e9
...
...
@@ -644,6 +644,10 @@ FIXME: Should use these.
pDrawable
->
depth
!=
1
&&
nxagentOption
(
DeferLevel
)
>=
1
)
{
/* -- changed by dimbor (small "bed-sheets" never need be prevented - always put) --*/
if
(
dstHeight
>
16
)
{
/* -------------------------------------------------------------------------------- */
#ifdef TEST
fprintf
(
stderr
,
"nxagentPutImage: WARNING! Prevented operation on region [%d,%d,%d,%d] "
"for drawable at [%p] with drawable pixmap.
\n
"
,
pRegion
->
extents
.
x1
,
...
...
@@ -654,6 +658,9 @@ FIXME: Should use these.
nxagentMarkCorruptedRegion
(
pDrawable
,
pRegion
);
goto
nxagentPutImageEnd
;
/* --- changed by dimbor ---*/
}
/* ------------------------- */
}
if
(
pDrawable
->
type
==
DRAWABLE_WINDOW
&&
...
...
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