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
fad1b5f0
Commit
fad1b5f0
authored
Feb 14, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.{c,h}: cleanup prototypes
parent
34109b85
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
27 deletions
+20
-27
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+8
-10
Clipboard.h
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
+10
-1
Events.h
nx-X11/programs/Xserver/hw/nxagent/Events.h
+0
-7
NXevents.c
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
+1
-5
NXproperty.c
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
+1
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
fad1b5f0
...
...
@@ -232,19 +232,17 @@ XFixesAgentInfoRec nxagentXFixesInfo = { -1, -1, -1, 0 };
extern
Display
*
nxagentDisplay
;
Bool
nxagentValidServerTargets
(
XlibAtom
target
);
static
Bool
nxagentValidServerTargets
(
XlibAtom
target
);
static
void
endTransfer
(
Bool
success
);
#define SELECTION_SUCCESS True
#define SELECTION_FAULT False
void
nxagentTransferSelection
(
int
resource
);
void
nxagentCollectPropertyEvent
(
int
resource
);
static
void
nxagentTransferSelection
(
int
resource
);
#if 0
void nxagentResetSelectionOwner(void);
#endif
WindowPtr
nxagentGetClipboardWindow
(
Atom
property
);
void
nxagentNotifyConvertFailure
(
ClientPtr
client
,
Window
requestor
,
static
void
nxagentNotifyConvertFailure
(
ClientPtr
client
,
Window
requestor
,
Atom
selection
,
Atom
target
,
Time
time
);
int
nxagentSendNotify
(
xEvent
*
event
);
static
void
nxagentSetSelectionOwner
(
Selection
*
pSelection
);
void
nxagentPrintClipboardStat
(
char
*
);
...
...
@@ -475,7 +473,7 @@ int SendSelectionNotifyEventToClient(ClientPtr client,
* server, like .e.g XA_STRING or UTF8_STRING. Other, non content type
* targets like "TARGETS" or "TIMESTAMP" will return false.
*/
Bool
nxagentValidServerTargets
(
XlibAtom
target
)
static
Bool
nxagentValidServerTargets
(
XlibAtom
target
)
{
if
(
target
==
XA_STRING
)
{
...
...
@@ -1012,7 +1010,7 @@ static void endTransfer(Bool success)
SetClientSelectionStage
(
None
);
}
void
nxagentTransferSelection
(
int
resource
)
static
void
nxagentTransferSelection
(
int
resource
)
{
if
(
lastClientClientPtr
->
index
!=
resource
)
{
...
...
@@ -1603,7 +1601,7 @@ void nxagentSetSelectionCallback(CallbackListPtr *callbacks, void *data,
* This is called from the nxagentSetSelectionCallback, so it is using
* internal Atoms
*/
void
nxagentSetSelectionOwner
(
Selection
*
pSelection
)
static
void
nxagentSetSelectionOwner
(
Selection
*
pSelection
)
{
if
(
!
agentClipboardInitialized
)
{
...
...
@@ -1687,7 +1685,7 @@ FIXME
*/
}
void
nxagentNotifyConvertFailure
(
ClientPtr
client
,
Window
requestor
,
static
void
nxagentNotifyConvertFailure
(
ClientPtr
client
,
Window
requestor
,
Atom
selection
,
Atom
target
,
Time
time
)
{
/*
...
...
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
View file @
fad1b5f0
...
...
@@ -54,7 +54,6 @@ extern Bool nxagentInitClipboard(WindowPtr pWindow);
extern
void
nxagentClearClipboard
(
ClientPtr
pClient
,
WindowPtr
pWindow
);
extern
void
nxagentSetSelectionOwner
(
Selection
*
pSelection
);
extern
int
nxagentConvertSelection
(
ClientPtr
client
,
WindowPtr
pWin
,
Atom
selection
,
Window
requestor
,
Atom
property
,
Atom
target
,
Time
time
);
...
...
@@ -69,4 +68,14 @@ extern void nxagentHandleSelectionNotifyFromXServer();
#endif
extern
int
nxagentFindCurrentSelectionIndex
(
Atom
sel
);
/*
* Handle the selection property received in the event loop in
* Events.c.
*/
extern
void
nxagentCollectPropertyEvent
(
int
resource
);
extern
WindowPtr
nxagentGetClipboardWindow
(
Atom
property
);
extern
int
nxagentSendNotify
(
xEvent
*
event
);
#endif
/* __Clipboard_H__ */
nx-X11/programs/Xserver/hw/nxagent/Events.h
View file @
fad1b5f0
...
...
@@ -150,13 +150,6 @@ extern void nxagentUngrabPointerAndKeyboard(XEvent *X);
extern
void
nxagentDeactivatePointerGrab
(
void
);
/*
* Handle the selection property received
* in the event loop.
*/
void
nxagentCollectPropertyEvent
(
int
resource
);
/*
* Synchronize expose events between agent and
* the real X server.
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/NXevents.c
View file @
fad1b5f0
...
...
@@ -143,6 +143,7 @@ of the copyright holder.
#include "Events.h"
#include "Windows.h"
#include "Args.h"
#include "Clipboard.h"
extern
Display
*
nxagentDisplay
;
...
...
@@ -153,11 +154,6 @@ extern void nxagentInitViewportFrame(ScreenPtr, WindowPtr);
#endif
extern
int
nxagentShadowInit
(
ScreenPtr
,
WindowPtr
);
#ifdef NXAGENT_CLIPBOARD
extern
int
nxagentSendNotify
(
xEvent
*
);
#endif
void
ActivatePointerGrab
(
register
DeviceIntPtr
mouse
,
register
GrabPtr
grab
,
TimeStamp
time
,
Bool
autoGrab
)
...
...
nx-X11/programs/Xserver/hw/nxagent/NXproperty.c
View file @
fad1b5f0
...
...
@@ -76,6 +76,7 @@ SOFTWARE.
#include "Rootless.h"
#include "Client.h"
#include "Windows.h"
#include "Clipboard.h"
extern
Atom
clientCutProperty
;
...
...
@@ -93,10 +94,6 @@ nxagentWMStateRec;
#undef TEST
#undef DEBUG
#ifdef NXAGENT_CLIPBOARD
extern
WindowPtr
nxagentGetClipboardWindow
(
Atom
);
#endif
#ifdef NXAGENT_ARTSD
extern
Atom
mcop_local_atom
;
#endif
...
...
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