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
2517d8c1
Commit
2517d8c1
authored
Jul 25, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: more DEBUG output
parent
934d9eae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+12
-3
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
2517d8c1
...
@@ -1588,14 +1588,21 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
...
@@ -1588,14 +1588,21 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
int
nxagentSendNotify
(
xEvent
*
event
)
int
nxagentSendNotify
(
xEvent
*
event
)
{
{
#ifdef DEBUG
#ifdef DEBUG
fprintf
(
stderr
,
"
nxagentSendNotify: Got called.
\n
"
);
fprintf
(
stderr
,
"
%s: Got called.
\n
"
,
__func__
);
#endif
#endif
if
(
agentClipboardStatus
!=
1
)
if
(
agentClipboardStatus
!=
1
)
{
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: agentClipboardStatus != 1 - doing nothing.
\n
"
,
__func__
);
#endif
return
0
;
return
0
;
}
}
#ifdef DEBUG
fprintf
(
stderr
,
"%s: property is [%d][%s].
\n
"
,
__func__
,
event
->
u
.
selectionNotify
.
property
,
NameForAtom
(
event
->
u
.
selectionNotify
.
property
));
#endif
if
(
event
->
u
.
selectionNotify
.
property
==
clientCutProperty
)
if
(
event
->
u
.
selectionNotify
.
property
==
clientCutProperty
)
{
{
XSelectionEvent
x
;
XSelectionEvent
x
;
...
@@ -1630,7 +1637,7 @@ int nxagentSendNotify(xEvent *event)
...
@@ -1630,7 +1637,7 @@ int nxagentSendNotify(xEvent *event)
x
.
time
=
CurrentTime
;
x
.
time
=
CurrentTime
;
#ifdef DEBUG
#ifdef DEBUG
fprintf
(
stderr
,
"
nxagentSendNotify: Propagating clientCutProperty to requestor [%p].
\n
"
,
x
.
requestor
);
fprintf
(
stderr
,
"
%s: Propagating clientCutProperty to requestor [%p].
\n
"
,
__func__
,
x
.
requestor
);
#endif
#endif
result
=
XSendEvent
(
nxagentDisplay
,
x
.
requestor
,
False
,
result
=
XSendEvent
(
nxagentDisplay
,
x
.
requestor
,
False
,
...
@@ -1646,7 +1653,9 @@ int nxagentSendNotify(xEvent *event)
...
@@ -1646,7 +1653,9 @@ int nxagentSendNotify(xEvent *event)
return
1
;
return
1
;
}
}
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentSendNotify: sent nothing.
\n
"
);
#endif
return
0
;
return
0
;
}
}
...
...
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