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
dd74cad8
Commit
dd74cad8
authored
Feb 13, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: rename nxagentLastRequestedSelection
and correctly print its value in debugging output
parent
2e18dff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+5
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
dd74cad8
...
...
@@ -96,7 +96,7 @@ typedef struct _SelectionOwner
* external atom of the selection
*/
static
SelectionOwner
*
lastSelectionOwner
;
static
XlibAtom
nxagent
LastRequestedSelection
;
static
XlibAtom
server
LastRequestedSelection
;
#define IS_INTERNAL_OWNER(lsoindex) (lastSelectionOwner[lsoindex].client != NULL)
...
...
@@ -373,6 +373,8 @@ void nxagentPrintClipboardStat(char *header)
fprintf
(
stderr
,
" serverTransToAgentProperty [% 4d][%s]
\n
"
,
serverTransFromAgentProperty
,
validateString
(
s
));
SAFE_XFree
(
s
);
s
=
XGetAtomName
(
nxagentDisplay
,
serverTransFromAgentProperty
);
fprintf
(
stderr
,
" serverTransFromAgentProperty [% 4d][%s]
\n
"
,
serverTransToAgentProperty
,
validateString
(
s
));
SAFE_XFree
(
s
);
s
=
XGetAtomName
(
nxagentDisplay
,
serverLastRequestedSelection
);
fprintf
(
stderr
,
" serverLastRequestedSelection [% 4d][%s]
\n
"
,
serverLastRequestedSelection
,
validateString
(
s
));
fprintf
(
stderr
,
"Atoms (inside nxagent)
\n
"
);
fprintf
(
stderr
,
" clientTARGETS [% 4d][%s]
\n
"
,
clientTARGETS
,
NameForAtom
(
clientTARGETS
));
...
...
@@ -382,7 +384,6 @@ void nxagentPrintClipboardStat(char *header)
fprintf
(
stderr
,
" clientUTF8_STRING [% 4d][%s]
\n
"
,
clientUTF8_STRING
,
NameForAtom
(
clientUTF8_STRING
));
fprintf
(
stderr
,
" clientCLIPBOARD [% 4d][%s]
\n
"
,
clientCLIPBOARD
,
NameForAtom
(
clientCLIPBOARD
));
fprintf
(
stderr
,
" clientCutProperty [% 4d][%s]
\n
"
,
clientCutProperty
,
NameForAtom
(
clientCutProperty
));
fprintf
(
stderr
,
" nxagentLastRequestedSelection [% 4d][%s]
\n
"
,
nxagentLastRequestedSelection
,
NameForAtom
(
nxagentLastRequestedSelection
));
fprintf
(
stderr
,
"
\\
------------------------------------------------------------------------------
\n
"
);
...
...
@@ -887,7 +888,7 @@ void nxagentRequestSelection(XEvent *X)
/*
* This is required for nxagentGetClipboardWindow.
*/
nxagent
LastRequestedSelection
=
X
->
xselectionrequest
.
selection
;
server
LastRequestedSelection
=
X
->
xselectionrequest
.
selection
;
/* find the index of the requested selection */
int
i
=
nxagentFindLastSelectionOwnerIndex
(
X
->
xselectionrequest
.
selection
);
...
...
@@ -2112,7 +2113,7 @@ int nxagentSendNotify(xEvent *event)
*/
WindowPtr
nxagentGetClipboardWindow
(
Atom
property
)
{
int
i
=
nxagentFindLastSelectionOwnerIndex
(
nxagent
LastRequestedSelection
);
int
i
=
nxagentFindLastSelectionOwnerIndex
(
server
LastRequestedSelection
);
if
(
i
<
nxagentMaxSelections
&&
property
==
clientCutProperty
&&
lastSelectionOwner
[
i
].
windowPtr
!=
NULL
)
...
...
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