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
5405447e
Unverified
Commit
5405447e
authored
Sep 29, 2019
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/clipboard_overhaul' into 3.6.x
Attributes GH PR #846:
https://github.com/ArcticaProject/nx-libs/pull/846
parents
3a3a3373
72c02240
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
14 deletions
+7
-14
Atoms.c
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+1
-0
Atoms.h
nx-X11/programs/Xserver/hw/nxagent/Atoms.h
+1
-1
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+0
-0
Clipboard.h
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
+2
-1
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+2
-7
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+1
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
View file @
5405447e
...
...
@@ -90,6 +90,7 @@ static char *nxagentAtomNames[NXAGENT_NUMBER_OF_ATOMS + 1] =
"UTF8_STRING"
,
/* 12 */
"_NET_WM_STATE"
,
/* 13 */
"_NET_WM_STATE_FULLSCREEN"
,
/* 14 */
"NX_CUT_BUFFER_CLIENT"
,
/* 15 */
NULL
,
NULL
};
...
...
nx-X11/programs/Xserver/hw/nxagent/Atoms.h
View file @
5405447e
...
...
@@ -30,7 +30,7 @@
#include "../../include/window.h"
#include "screenint.h"
#define NXAGENT_NUMBER_OF_ATOMS 1
6
#define NXAGENT_NUMBER_OF_ATOMS 1
7
extern
Atom
nxagentAtoms
[
NXAGENT_NUMBER_OF_ATOMS
];
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
5405447e
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
View file @
5405447e
...
...
@@ -64,6 +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 @
5405447e
...
...
@@ -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
;
}
...
...
@@ -2933,12 +2933,7 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
if
(
SelectionCallback
)
{
int
i
=
0
;
while
((
i
<
NumCurrentSelections
)
&&
CurrentSelections
[
i
].
selection
!=
local
)
i
++
;
int
i
=
nxagentFindCurrentSelectionIndex
(
local
);
if
(
i
<
NumCurrentSelections
)
{
SelectionInfoRec
info
;
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
5405447e
...
...
@@ -691,11 +691,7 @@ ProcConvertSelection(register ClientPtr client)
(
stuff
->
selection
==
MakeAtom
(
"CLIPBOARD"
,
9
,
0
)))
&&
nxagentOption
(
Clipboard
)
!=
ClipboardNone
)
{
int
i
=
0
;
while
((
i
<
NumCurrentSelections
)
&&
CurrentSelections
[
i
].
selection
!=
stuff
->
selection
)
i
++
;
int
i
=
nxagentFindCurrentSelectionIndex
(
stuff
->
selection
);
if
((
i
<
NumCurrentSelections
)
&&
(
CurrentSelections
[
i
].
window
!=
None
))
{
if
(
nxagentConvertSelection
(
client
,
pWin
,
stuff
->
selection
,
stuff
->
requestor
,
...
...
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