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
8e1d9773
Commit
8e1d9773
authored
Feb 17, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXdispatch.c: move nxagentCheckIfShadowAgent to client callback
parent
7358581d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
18 deletions
+12
-18
Client.c
nx-X11/programs/Xserver/hw/nxagent/Client.c
+8
-1
Client.h
nx-X11/programs/Xserver/hw/nxagent/Client.h
+4
-10
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+0
-7
No files found.
nx-X11/programs/Xserver/hw/nxagent/Client.c
View file @
8e1d9773
...
...
@@ -72,6 +72,7 @@
void
nxagentClientStateCallback
(
CallbackListPtr
*
callbacks
,
void
*
data
,
void
*
args
);
static
void
initClientPrivates
(
ClientPtr
client
);
static
void
freeClientPrivates
(
ClientPtr
client
);
static
void
checkIfShadowAgent
(
ClientPtr
client
);
/*
* Returns the last signal delivered to the process.
...
...
@@ -152,6 +153,12 @@ void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, void *ar
case
ClientStateGone
:
{
nxagentClearClipboard
(
client
,
NULL
);
/*
* Check if the client is a shadow nxagent.
*/
checkIfShadowAgent
(
client
);
freeClientPrivates
(
client
);
break
;
}
...
...
@@ -283,7 +290,7 @@ void nxagentGuessShadowHint(ClientPtr client, Atom property)
}
}
void
nxagentC
heckIfShadowAgent
(
ClientPtr
client
)
static
void
c
heckIfShadowAgent
(
ClientPtr
client
)
{
if
(
nxagentClientHint
(
client
)
==
NXAGENT_SHADOW
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Client.h
View file @
8e1d9773
...
...
@@ -76,8 +76,7 @@ extern void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, v
(nxagentClientHint(pClient) == NXCLIENT_DIALOG)
/*
* The actual reason why the client
* is sleeping.
* The actual reason why the client is sleeping.
*/
#define SleepingBySplit 1
...
...
@@ -94,19 +93,15 @@ void nxagentGuessClientHint(ClientPtr, Atom, char*);
void
nxagentGuessShadowHint
(
ClientPtr
,
Atom
);
void
nxagentCheckIfShadowAgent
(
ClientPtr
);
/*
* Suspend or restart the agent's
* client.
* Suspend or restart the agent's client.
*/
int
nxagentSuspendBySplit
(
ClientPtr
client
);
int
nxagentWakeupBySplit
(
ClientPtr
client
);
/*
* Wait until the given client is
* restarted.
* Wait until the given client is restarted.
*/
void
nxagentWaitWakeupBySplit
(
ClientPtr
client
);
...
...
@@ -123,8 +118,7 @@ void nxagentWaitDrawable(DrawablePtr pDrawable);
void
nxagentWakeupByReconnect
(
void
);
/*
* Reset the client state before
* closing it down.
* Reset the client state before closing it down.
*/
void
nxagentWakeupByReset
(
ClientPtr
client
);
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
8e1d9773
...
...
@@ -994,13 +994,6 @@ CloseDownClient(register ClientPtr client)
*/
nxagentWakeupByReset
(
client
);
/*
* Check if the client is a shadow nxagent.
*/
nxagentCheckIfShadowAgent
(
client
);
#endif
xorg_CloseDownClient
(
client
);
...
...
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