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
72c02240
Commit
72c02240
authored
Aug 09, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: rename nxagentNotifySelection to nxagentHandleSelectionNotifyFromXServer
Use a more descriptive name.
parent
6663cbe6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+5
-4
Clipboard.h
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
+1
-1
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
72c02240
...
...
@@ -1199,7 +1199,7 @@ void nxagentCollectPropertyEvent(int resource)
* SelectionNotify event from the real X server. These events are
* sent out by nxagent itself!
*/
void
nxagent
NotifySelection
(
XEvent
*
X
)
void
nxagent
HandleSelectionNotifyFromXServer
(
XEvent
*
X
)
{
if
(
agentClipboardStatus
!=
1
)
{
...
...
@@ -1859,9 +1859,10 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
/*
* This is _only_ called from ProcSendEvent in NXevents.c. It is used
* to send a SelectionNotify event to our server window which will
* trigger the dispatch loop in Events.c to run nxagentNotifySelection
* which in turn will take care of transferring the selection content
* from the owning client to to a property of the server window.
* trigger the dispatch loop in Events.c to run
* nxagentHandleSelectionNotifyFromXServer which in turn will take
* care of transferring the selection content from the owning client
* to to a property of the server window.
*
* Returning 1 here means the client request will not be further
* handled by dix. Returning 0 means a SelectionNotify event being
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
View file @
72c02240
...
...
@@ -64,7 +64,7 @@ extern int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom select
void
nxagentClearSelection
();
void
nxagentRequestSelection
();
void
nxagent
NotifySelection
();
void
nxagent
HandleSelectionNotifyFromXServer
();
int
nxagentFindCurrentSelectionIndex
(
Atom
sel
);
#endif
/* __Clipboard_H__ */
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
72c02240
...
...
@@ -944,7 +944,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
fprintf
(
stderr
,
"nxagentDispatchEvents: Going to handle new SelectionNotify event.
\n
"
);
#endif
nxagent
NotifySelection
(
&
X
);
nxagent
HandleSelectionNotifyFromXServer
(
&
X
);
break
;
}
...
...
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