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
3fd7e5f9
Commit
3fd7e5f9
authored
Jun 10, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nxagentExternalClipboardEventTrap
parent
58cd3574
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+12
-0
Trap.c
nx-X11/programs/Xserver/hw/nxagent/Trap.c
+8
-0
Trap.h
nx-X11/programs/Xserver/hw/nxagent/Trap.h
+8
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
3fd7e5f9
...
...
@@ -2968,7 +2968,19 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
info
.
selection
=
&
CurrentSelections
[
i
];
info
.
kind
=
xfixesEvent
->
xfixesselection
.
subtype
;
/*
* The trap indicates that we are triggered by a clipboard event
* originating from the real X server. In that case we do not
* want to propagate back changes to the real X server, because
* it already knows about them and we would end up in an
* infinite loop of events. If there was a better way to
* identify that situation during Callback processing we could
* get rid of the Trap...
*/
nxagentExternalClipboardEventTrap
=
1
;
CallCallbacks
(
&
SelectionCallback
,
&
info
);
nxagentExternalClipboardEventTrap
=
0
;
}
}
return
1
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Trap.c
View file @
3fd7e5f9
...
...
@@ -120,3 +120,11 @@ int nxagentXkbCapsTrap = 0;
int
nxagentXkbNumTrap
=
0
;
/*
* Set to indicate we are processing a clipboard event triggered by
* the real X server. This is used to avoid endless loops if callbacks
* would trigger another event by the real X server
*/
int
nxagentExternalClipboardEventTrap
=
0
;
nx-X11/programs/Xserver/hw/nxagent/Trap.h
View file @
3fd7e5f9
...
...
@@ -121,4 +121,12 @@ extern int nxagentXkbCapsTrap;
extern
int
nxagentXkbNumTrap
;
/*
* Set to indicate we are processing a clipboard event triggered by
* the real X server. This is used to avoid endless loops if callbacks
* would trigger another event by the real X server
*/
extern
int
nxagentExternalClipboardEventTrap
;
#endif
/* __Trap_H__ */
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