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
09ba97b2
Commit
09ba97b2
authored
Jun 10, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXdispatch.c: Use Callback instead of a modified function
parent
2972f6af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+9
-0
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+0
-9
No files found.
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
09ba97b2
...
...
@@ -143,6 +143,11 @@ void OsVendorEndRedirectErrorFFunction();
static
void
nxagentGrabServerCallback
(
CallbackListPtr
*
callbacks
,
void
*
data
,
void
*
args
);
#ifdef NXAGENT_CLIPBOARD
extern
void
nxagentSetSelectionCallback
(
CallbackListPtr
*
callbacks
,
void
*
data
,
void
*
args
);
#endif
void
ddxInitGlobals
(
void
)
{
/*
...
...
@@ -411,6 +416,10 @@ FIXME: These variables, if not removed at all because have probably
blackRoot
=
TRUE
;
nxagentInitKeystrokes
(
False
);
#ifdef NXAGENT_CLIPBOARD
AddCallback
(
&
SelectionCallback
,
nxagentSetSelectionCallback
,
NULL
);
#endif
}
void
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
09ba97b2
...
...
@@ -764,15 +764,6 @@ ProcSetSelectionOwner(register ClientPtr client)
CallCallbacks
(
&
SelectionCallback
,
&
info
);
}
#ifdef NXAGENT_CLIPBOARD
if
((
CurrentSelections
[
i
].
pWin
!=
NULL
)
&&
(
nxagentOption
(
Clipboard
)
!=
ClipboardNone
)
&&
((
CurrentSelections
[
i
].
selection
==
XA_PRIMARY
)
||
(
CurrentSelections
[
i
].
selection
==
MakeAtom
(
"CLIPBOARD"
,
9
,
0
))))
{
nxagentSetSelectionOwner
(
&
CurrentSelections
[
i
]);
}
#endif
return
(
client
->
noClientException
);
}
else
...
...
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