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
e34f152c
Commit
e34f152c
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: clientAccum is only used for debugging, add DEBUG ifdefs
parent
98a0810f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+7
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
e34f152c
...
...
@@ -68,7 +68,9 @@ extern Selection *CurrentSelections;
int
nxagentLastClipboardClient
=
-
1
;
static
int
agentClipboardStatus
;
#ifdef DEBUG
static
int
clientAccum
;
#endif
Atom
serverCutProperty
;
Atom
clientCutProperty
;
...
...
@@ -1529,29 +1531,29 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
}
}
#ifdef DEBUG
if
(
lastClientClientPtr
==
client
&&
(
GetTimeInMillis
()
-
lastClientReqTime
<
5000
))
{
/*
* The same client made consecutive requests
* of clipboard contents with less than 5
* seconds time interval between them.
* The same client made consecutive requests of clipboard contents
* with less than 5 seconds time interval between them.
*/
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Consecutives request from client [%p] selection [%u] "
"elapsed time [%u] clientAccum [%d]
\n
"
,
__func__
,
(
void
*
)
client
,
selection
,
GetTimeInMillis
()
-
lastClientReqTime
,
clientAccum
);
#endif
clientAccum
++
;
}
else
{
/* reset clientAccum as now another client requested the clipboard content */
if
(
lastClientClientPtr
!=
client
)
{
clientAccum
=
0
;
}
}
#endif
if
((
target
==
clientTEXT
)
||
(
target
==
XA_STRING
)
||
...
...
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