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
2b59a199
Commit
2b59a199
authored
5 years ago
by
Ulrich Sibiller
Committed by
Mike Gabriel
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: simplify nxagentSetSelectionOwner
We do not need to loop over all selections. We have a helper for that.
parent
15ef7087
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+2
-9
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
2b59a199
...
...
@@ -1622,14 +1622,8 @@ void nxagentSetSelectionOwner(Selection *pSelection)
}
#endif
/*
* Only for PRIMARY and CLIPBOARD selections.
*/
for
(
int
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
{
/* FIXME: using CurrentSelections with the index limited my MaxSelections looks wrong */
if
(
pSelection
->
selection
==
CurrentSelections
[
i
].
selection
)
int
i
=
nxagentFindCurrentSelectionIndex
(
pSelection
->
selection
);
if
(
i
<
NumCurrentSelections
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: lastSelectionOwner.client [%p] index [%d] -> [%p] index [%d]
\n
"
,
__func__
,
...
...
@@ -1658,7 +1652,6 @@ void nxagentSetSelectionOwner(Selection *pSelection)
*/
nxagentStoreSelectionOwner
(
i
,
pSelection
);
}
}
lastClientWindowPtr
=
NULL
;
SetClientSelectionStage
(
None
);
...
...
This diff is collapsed.
Click to expand it.
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