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
b393bca6
Commit
b393bca6
authored
Aug 05, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: scope improvements
parent
cb3e44a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+8
-11
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
b393bca6
...
...
@@ -805,8 +805,6 @@ static void endTransfer(Bool success)
void
nxagentTransferSelection
(
int
resource
)
{
int
result
;
if
(
lastClientClientPtr
->
index
!=
resource
)
{
#ifdef DEBUG
...
...
@@ -823,6 +821,8 @@ void nxagentTransferSelection(int resource)
{
case
SelectionStageQuerySize
:
{
int
result
;
PrintClientSelectionStage
();
/*
* Don't get data yet, just get size. We skip
...
...
@@ -870,6 +870,8 @@ void nxagentTransferSelection(int resource)
}
case
SelectionStageQueryData
:
{
int
result
;
PrintClientSelectionStage
();
/*
...
...
@@ -1210,8 +1212,6 @@ void nxagentNotifySelection(XEvent *X)
void
nxagentResetSelectionOwner
(
void
)
{
int
i
;
if
(
lastServerRequestor
!=
None
)
{
#ifdef TEST
...
...
@@ -1226,7 +1226,7 @@ void nxagentResetSelectionOwner(void)
* Only for PRIMARY and CLIPBOARD selections.
*/
for
(
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
{
XSetSelectionOwner
(
nxagentDisplay
,
lastSelectionOwner
[
i
].
selection
,
serverWindow
,
CurrentTime
);
...
...
@@ -1415,8 +1415,6 @@ FIXME: Why this pointer can be not a valid
int
nxagentConvertSelection
(
ClientPtr
client
,
WindowPtr
pWin
,
Atom
selection
,
Window
requestor
,
Atom
property
,
Atom
target
,
Time
time
)
{
const
char
*
strTarget
;
if
(
agentClipboardStatus
!=
1
||
nxagentOption
(
Clipboard
)
==
ClipboardServer
)
{
...
...
@@ -1479,7 +1477,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
validateString
(
NameForAtom
(
property
)),
validateString
(
NameForAtom
(
target
)));
#endif
strTarget
=
NameForAtom
(
target
);
const
char
*
strTarget
=
NameForAtom
(
target
);
if
(
strTarget
==
NULL
)
{
...
...
@@ -1682,7 +1680,6 @@ WindowPtr nxagentGetClipboardWindow(Atom property)
int
nxagentInitClipboard
(
WindowPtr
pWin
)
{
int
i
;
Window
iWindow
=
nxagentWindow
(
pWin
);
#ifdef DEBUG
...
...
@@ -1763,7 +1760,7 @@ int nxagentInitClipboard(WindowPtr pWin)
fprintf
(
stderr
,
"%s: Registering for XFixesSelectionNotify events.
\n
"
,
__func__
);
#endif
for
(
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
{
XFixesSelectSelectionInput
(
nxagentDisplay
,
iWindow
,
lastSelectionOwner
[
i
].
selection
,
...
...
@@ -1803,7 +1800,7 @@ int nxagentInitClipboard(WindowPtr pWin)
* Only for PRIMARY and CLIPBOARD selections.
*/
for
(
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
nxagentMaxSelections
;
i
++
)
{
if
(
lastSelectionOwner
[
i
].
client
&&
lastSelectionOwner
[
i
].
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