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
5d1577ab
You need to sign in or sign up before continuing.
Commit
5d1577ab
authored
Nov 18, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: reorder nxagentInitClipboard
It makes sense to measure time and set the initialized flag right at the start.
parent
634d4fc8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+11
-10
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
5d1577ab
...
@@ -2127,6 +2127,16 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2127,6 +2127,16 @@ Bool nxagentInitClipboard(WindowPtr pWin)
fprintf
(
stderr
,
"%s: Got called.
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s: Got called.
\n
"
,
__func__
);
#endif
#endif
#ifdef NXAGENT_TIMESTAMP
{
fprintf
(
stderr
,
"%s: Clipboard init starts at [%ld] ms.
\n
"
,
__func__
,
GetTimeInMillis
()
-
startTime
);
}
#endif
agentClipboardInitialized
=
False
;
serverWindow
=
nxagentWindow
(
pWin
);
if
(
!
nxagentReconnectTrap
)
if
(
!
nxagentReconnectTrap
)
{
{
SAFE_free
(
lastSelectionOwner
);
SAFE_free
(
lastSelectionOwner
);
...
@@ -2147,15 +2157,6 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2147,15 +2157,6 @@ Bool nxagentInitClipboard(WindowPtr pWin)
lastSelectionOwner
[
nxagentClipboardSelection
].
selection
=
nxagentAtoms
[
10
];
/* CLIPBOARD */
lastSelectionOwner
[
nxagentClipboardSelection
].
selection
=
nxagentAtoms
[
10
];
/* CLIPBOARD */
}
}
#ifdef NXAGENT_TIMESTAMP
{
fprintf
(
stderr
,
"%s: Initializing start [%ld] milliseconds.
\n
"
,
__func__
,
GetTimeInMillis
()
-
startTime
);
}
#endif
agentClipboardInitialized
=
False
;
serverWindow
=
nxagentWindow
(
pWin
);
serverTARGETS
=
nxagentAtoms
[
6
];
/* TARGETS */
serverTARGETS
=
nxagentAtoms
[
6
];
/* TARGETS */
serverTEXT
=
nxagentAtoms
[
7
];
/* TEXT */
serverTEXT
=
nxagentAtoms
[
7
];
/* TEXT */
...
@@ -2294,7 +2295,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
...
@@ -2294,7 +2295,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
#ifdef NXAGENT_TIMESTAMP
#ifdef NXAGENT_TIMESTAMP
{
{
fprintf
(
stderr
,
"%s:
initializing ends [%ld] millisecond
s.
\n
"
,
__func__
,
fprintf
(
stderr
,
"%s:
Clipboard init ends at [%ld] m
s.
\n
"
,
__func__
,
GetTimeInMillis
()
-
startTime
);
GetTimeInMillis
()
-
startTime
);
}
}
#endif
#endif
...
...
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