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
68125b06
Commit
68125b06
authored
Nov 22, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: Use Find*Index helpers at more locations
parent
feedae86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+6
-7
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
68125b06
...
...
@@ -770,8 +770,9 @@ void nxagentRequestSelection(XEvent *X)
}
/* the selection in this request is none we own. */
if
((
X
->
xselectionrequest
.
selection
!=
lastSelectionOwner
[
nxagentPrimarySelection
].
selection
)
&&
(
X
->
xselectionrequest
.
selection
!=
lastSelectionOwner
[
nxagentClipboardSelection
].
selection
))
{
int
i
=
nxagentFindLastSelectionOwnerIndex
(
X
->
xselectionrequest
.
selection
);
if
(
i
==
nxagentMaxSelections
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: not owning selection [%ld] - denying request.
\n
"
,
__func__
,
X
->
xselectionrequest
.
selection
);
...
...
@@ -780,6 +781,7 @@ void nxagentRequestSelection(XEvent *X)
nxagentReplyRequestSelection
(
X
,
False
);
return
;
}
}
/* this is a special request like TARGETS or TIMESTAMP */
if
(
!
nxagentValidServerTargets
(
X
->
xselectionrequest
.
target
))
...
...
@@ -1724,17 +1726,14 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
return
0
;
}
for
(
int
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
{
if
(
selection
==
CurrentSelections
[
i
].
selection
&&
IS_INTERNAL_OWNER
(
i
))
int
i
=
nxagentFindCurrentSelectionIndex
(
selection
);
if
(
i
<
NumCurrentSelections
&&
IS_INTERNAL_OWNER
(
i
))
{
/*
* There is a client owner on the agent side, let normal dix stuff happen.
*/
return
0
;
}
}
/*
* if lastClientWindowPtr is set we are waiting for an answer from
...
...
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