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
d634f26b
Commit
d634f26b
authored
Dec 17, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: extend/reformat some comments
parent
d210c584
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+12
-8
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
d634f26b
...
...
@@ -912,7 +912,8 @@ void nxagentRequestSelection(XEvent *X)
/*
* if one of our clients owns the selection we ask it to copy
* the selection to the clientCutProperty on nxagent's root
* window on the real X server.
* window in the first step. We then later push that property's
* content to the real X server.
*/
if
(
IS_INTERNAL_OWNER
(
i
)
&&
(
nxagentOption
(
Clipboard
)
==
ClipboardServer
||
...
...
@@ -1036,10 +1037,10 @@ void nxagentTransferSelection(int resource)
int
result
;
PrintClientSelectionStage
();
/*
* Don't get data yet, just get size. We skip
* this stage in current implementation and
* go straight to the data.
* Don't get data yet, just get size. We skip this stage in
* current implementation and go straight to the data.
*/
nxagentLastClipboardClient
=
NXGetCollectPropertyResource
(
nxagentDisplay
);
...
...
@@ -1323,9 +1324,9 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
* We reach here after a paste inside the nxagent, triggered by
* the XConvertSelection call in nxagentConvertSelection(). This
* means that data we need has been transferred to the
* serverTransToAgentProperty of the serverWindow (our window on
the real X
*
server). We now need to transfer it to the original requestor,
* which is stored in the lastClient* variables.
* serverTransToAgentProperty of the serverWindow (our window on
*
the real X server). We now need to transfer it to the original
*
requestor,
which is stored in the lastClient* variables.
*/
if
((
lastClientStage
==
SelectionStageNone
)
&&
(
X
->
xselection
.
property
==
serverTransToAgentProperty
))
{
...
...
@@ -1365,7 +1366,10 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
int
i
=
nxagentFindLastSelectionOwnerIndex
(
X
->
xselection
.
selection
);
if
(
i
<
nxagentMaxSelections
)
{
/* if the last owner was an internal one */
/* if the last owner was an internal one, read the
* clientCutProperty and push the contents to the
* lastServerRequestor on the real X server.
*/
if
(
IS_INTERNAL_OWNER
(
i
)
&&
lastSelectionOwner
[
i
].
windowPtr
!=
NULL
&&
X
->
xselection
.
property
==
serverTransFromAgentProperty
)
...
...
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