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
1d05784b
Commit
1d05784b
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: drop serverCLIPBOARD
we reference lastSelectionOwner[nxagentClipboardSelection].selection everywhere.
parent
e34f152c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+1
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
1d05784b
...
...
@@ -126,7 +126,6 @@ static Atom lastServerTarget;
static
Time
lastServerTime
;
static
Atom
serverTARGETS
;
static
Atom
serverCLIPBOARD
;
static
Atom
serverTIMESTAMP
;
static
Atom
serverTEXT
;
static
Atom
serverUTF8_STRING
;
...
...
@@ -328,8 +327,6 @@ void nxagentPrintClipboardStat(char *header)
SAFE_XFree
(
s
);
s
=
XGetAtomName
(
nxagentDisplay
,
serverCutProperty
);
fprintf
(
stderr
,
" serverCutProperty [% 4d][%s]
\n
"
,
serverCutProperty
,
s
);
SAFE_XFree
(
s
);
s
=
XGetAtomName
(
nxagentDisplay
,
serverCLIPBOARD
);
fprintf
(
stderr
,
" serverCLIPBOARD [% 4d][%s]
\n
"
,
serverCLIPBOARD
,
s
);
SAFE_XFree
(
s
);
s
=
XGetAtomName
(
nxagentDisplay
,
serverTIMESTAMP
);
fprintf
(
stderr
,
" serverTIMESTAMP [% 4d][%s]
\n
"
,
serverTIMESTAMP
,
s
);
...
...
@@ -1716,7 +1713,6 @@ int nxagentInitClipboard(WindowPtr pWin)
FatalError
(
"nxagentInitClipboard: Failed to allocate memory for the clipboard selections.
\n
"
);
}
serverCLIPBOARD
=
nxagentAtoms
[
10
];
/* CLIPBOARD */
serverTIMESTAMP
=
nxagentAtoms
[
11
];
/* TIMESTAMP */
lastSelectionOwner
[
nxagentPrimarySelection
].
selection
=
XA_PRIMARY
;
...
...
@@ -1725,7 +1721,7 @@ int nxagentInitClipboard(WindowPtr pWin)
lastSelectionOwner
[
nxagentPrimarySelection
].
windowPtr
=
NULL
;
lastSelectionOwner
[
nxagentPrimarySelection
].
lastTimeChanged
=
GetTimeInMillis
();
lastSelectionOwner
[
nxagentClipboardSelection
].
selection
=
serverCLIPBOARD
;
lastSelectionOwner
[
nxagentClipboardSelection
].
selection
=
nxagentAtoms
[
10
];
/* CLIPBOARD */
lastSelectionOwner
[
nxagentClipboardSelection
].
client
=
NullClient
;
lastSelectionOwner
[
nxagentClipboardSelection
].
window
=
screenInfo
.
screens
[
0
]
->
root
->
drawable
.
id
;
lastSelectionOwner
[
nxagentClipboardSelection
].
windowPtr
=
NULL
;
...
...
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