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
e90306ec
Commit
e90306ec
authored
Oct 10, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: some scope optimizations
parent
85a28a68
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+4
-9
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
e90306ec
...
...
@@ -424,9 +424,6 @@ void nxagentClearSelection(XEvent *X)
void
nxagentRequestSelection
(
XEvent
*
X
)
{
#ifdef DEBUG
int
result
;
#endif
int
i
=
0
;
XSelectionEvent
eventSelection
=
{
0
};
...
...
@@ -507,7 +504,7 @@ FIXME: Do we need this?
eventSelection
.
time
=
X
->
xselectionrequest
.
time
;
#ifdef DEBUG
result
=
int
result
=
#endif
XSendEvent
(
nxagentDisplay
,
eventSelection
.
requestor
,
...
...
@@ -625,7 +622,7 @@ FIXME: Do we need this?
eventSelection
.
time
=
X
->
xselectionrequest
.
time
;
#ifdef DEBUG
result
=
int
result
=
#endif
XSendEvent
(
nxagentDisplay
,
eventSelection
.
requestor
,
...
...
@@ -971,8 +968,6 @@ void nxagentCollectPropertyEvent(int resource)
void
nxagentNotifySelection
(
XEvent
*
X
)
{
int
result
;
XSelectionEvent
eventSelection
;
#ifdef DEBUG
...
...
@@ -1051,7 +1046,7 @@ void nxagentNotifySelection(XEvent *X)
unsigned
long
ulReturnBytesLeft
;
unsigned
char
*
pszReturnData
=
NULL
;
result
=
GetWindowProperty
(
lastSelectionOwner
[
i
].
windowPtr
,
clientCutProperty
,
0
,
0
,
False
,
int
result
=
GetWindowProperty
(
lastSelectionOwner
[
i
].
windowPtr
,
clientCutProperty
,
0
,
0
,
False
,
AnyPropertyType
,
&
atomReturnType
,
&
resultFormat
,
&
ulReturnItems
,
&
ulReturnBytesLeft
,
&
pszReturnData
);
...
...
@@ -1400,7 +1395,6 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
if
(
target
==
MakeAtom
(
"TIMESTAMP"
,
9
,
1
))
{
xEvent
x
;
int
i
=
0
;
while
((
i
<
NumCurrentSelections
)
&&
...
...
@@ -1408,6 +1402,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
if
(
i
<
NumCurrentSelections
)
{
xEvent
x
;
ChangeWindowProperty
(
pWin
,
property
,
target
,
...
...
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