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
feedae86
Commit
feedae86
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: cosmetics/typo fix/untabify
parent
6c0536a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+6
-8
Clipboard.h
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
+0
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
feedae86
...
...
@@ -660,7 +660,6 @@ void nxagentClearSelection(XEvent *X)
}
int
i
=
nxagentFindLastSelectionOwnerIndex
(
X
->
xselectionclear
.
selection
);
if
(
i
<
nxagentMaxSelections
)
{
if
(
IS_INTERNAL_OWNER
(
i
))
...
...
@@ -759,7 +758,7 @@ void nxagentRequestSelection(XEvent *X)
return
;
}
/* lastServerRequestor in non-NULL (= we are currenty in the transfer phase) */
/* lastServerRequestor in non-NULL (= we are current
l
y in the transfer phase) */
if
(
lastServerRequestor
!=
None
)
{
#ifdef DEBUG
...
...
@@ -1947,7 +1946,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
/* FIXME: check returncode of XConvertSelection */
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Sent XConvertSelection with target
=
[%s], property [%s]
\n
"
,
__func__
,
fprintf
(
stderr
,
"%s: Sent XConvertSelection with target
[%s], property [%s]
\n
"
,
__func__
,
validateString
(
NameForAtom
(
target
)),
validateString
(
NameForAtom
(
property
)));
#endif
...
...
@@ -1973,7 +1972,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
* trigger the dispatch loop in Events.c to run
* nxagentHandleSelectionNotifyFromXServer which in turn will take
* care of transferring the selection content from the owning client
* to
to
a property of the server window.
* to a property of the server window.
*
* Returning 1 here means the client request will not be further
* handled by dix. Returning 0 means a SelectionNotify event being
...
...
@@ -2021,7 +2020,7 @@ int nxagentSendNotify(xEvent *event)
* Setup selection notify event to real server.
*
* .property must be a server-side Atom. As this property is only
* set on our serverWindow and normally there are
no
other
* set on our serverWindow and normally there are
few
other
* properties except serverCutProperty, the only thing we need to
* ensure is that the internal Atom clientCutProperty differs
* from the server-side serverCutProperty Atom. The actual name is
...
...
@@ -2155,12 +2154,11 @@ Bool nxagentInitClipboard(WindowPtr pWin)
}
else
{
/* the clipboard selection atom might have changed on
the
new X
/* the clipboard selection atom might have changed on
a
new X
server. Primary is constant. */
lastSelectionOwner
[
nxagentClipboardSelection
].
selection
=
nxagentAtoms
[
10
];
/* CLIPBOARD */
}
serverTARGETS
=
nxagentAtoms
[
6
];
/* TARGETS */
serverTEXT
=
nxagentAtoms
[
7
];
/* TEXT */
serverCOMPOUND_TEXT
=
nxagentAtoms
[
16
];
/* COMPOUND_TEXT */
...
...
@@ -2168,7 +2166,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
serverTIMESTAMP
=
nxagentAtoms
[
11
];
/* TIMESTAMP */
/*
*
Local
properties to hold pasted data.
*
Server side
properties to hold pasted data.
* see nxagentSendNotify for an explanation
*/
serverClientCutProperty
=
nxagentAtoms
[
15
];
/* NX_CUT_BUFFER_CLIENT */
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
View file @
feedae86
...
...
@@ -36,7 +36,6 @@ typedef struct _XFixesAgentInfo
int
EventBase
;
int
ErrorBase
;
int
Initialized
;
}
XFixesAgentInfoRec
;
extern
XFixesAgentInfoRec
nxagentXFixesInfo
;
...
...
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