-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pr/simplify derivations #805
base: 3.6.x
Are you sure you want to change the base?
Changes from all commits
5b5ea5e
31fdc04
3cc7209
dcee638
9ce59a6
f4ea243
1384e74
8067b1d
1b7d18c
36f11b3
3803fad
8ca5b50
b85d5b4
31139f3
28760ea
ba197b2
45a9972
df73aa7
18239e0
265d974
aa8bb89
c541d8f
ed99411
40259b4
2134c50
f4c2074
071d869
6ace1df
2668d2c
81970d4
baf2272
72c7b41
09fc26f
6ac13c4
a60f654
007502a
1c55def
631f6b4
b4b6511
6801d6a
b17088d
c205f2b
1162081
bc00ae9
250eb10
c175824
3541c5f
8207057
8a8c12d
b2a23d5
3437b25
0e9bca5
52aca52
6e5100a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,7 +247,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \ | |
hw/nxagent/NXextension.o \ | ||
hw/nxagent/NXglxext.o \ | ||
hw/nxagent/NXresource.o \ | ||
hw/nxagent/NXdamage.o \ | ||
hw/nxagent/damage.o \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels wrong (symlinks damage.[c|o] from DIX to DDX). Why not build damage.c at its original location? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is the same as with some other linked files: NXdamage.c did not have any code left after cleanup, but in dix/damage.c there are NXAGENT_SERVER ifdefs. That define is only set during nxagent compilation, but not during dix compilation. |
||
$(NULL) | ||
#elif !defined(Win32Architecture) | ||
NXAGENTOBJS = hw/nxagent/miinitext.o \ | ||
|
@@ -264,7 +264,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \ | |
hw/nxagent/NXglxext.o \ | ||
hw/nxagent/NXxvdisp.o \ | ||
hw/nxagent/NXresource.o \ | ||
hw/nxagent/NXdamage.o \ | ||
hw/nxagent/damage.o \ | ||
$(NULL) | ||
#else | ||
NXAGENTOBJS = hw/nxagent/miinitext.o \ | ||
|
@@ -281,7 +281,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \ | |
hw/nxagent/NXglxext.o \ | ||
hw/nxagent/NXxvdisp.o \ | ||
hw/nxagent/NXresource.o \ | ||
hw/nxagent/NXdamage.o \ | ||
hw/nxagent/damage.o \ | ||
dix/main.o \ | ||
$(NULL) | ||
#endif | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,16 +213,18 @@ UpdateCurrentTimeIf() | |
currentTime = systime; | ||
} | ||
|
||
#ifndef NXAGENT_SERVER | ||
void | ||
InitSelections() | ||
#ifdef NXAGENT_SERVER | ||
xorg_InitSelections(void) | ||
#else | ||
InitSelections(void) | ||
#endif | ||
{ | ||
if (CurrentSelections) | ||
free(CurrentSelections); | ||
CurrentSelections = (Selection *)NULL; | ||
NumCurrentSelections = 0; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why xorg_* namespace? |
||
#endif /* NXAGENT_SERVER */ | ||
|
||
#undef SMART_DEBUG | ||
|
||
|
@@ -3475,11 +3477,14 @@ InitProcVectors(void) | |
* then killed again, the client is really destroyed. | ||
*********************/ | ||
|
||
#ifndef NXAGENT_SERVER | ||
char dispatchExceptionAtReset = DE_RESET; | ||
|
||
void | ||
CloseDownClient(register ClientPtr client) | ||
#ifdef NXAGENT_SERVER | ||
xorg_CloseDownClient(ClientPtr client) | ||
#else | ||
CloseDownClient(ClientPtr client) | ||
#endif | ||
{ | ||
Bool really_close_down = client->clientGone || | ||
client->closeDownMode == DestroyAll; | ||
|
@@ -3564,7 +3569,6 @@ CloseDownClient(register ClientPtr client) | |
currentMaxClients--; | ||
} | ||
} | ||
#endif /* NXAGENT_SERVER */ | ||
|
||
static void | ||
KillAllClients() | ||
|
@@ -3641,9 +3645,12 @@ void InitClient(ClientPtr client, int i, void * ospriv) | |
client->clientIds = NULL; | ||
} | ||
|
||
#ifndef NXAGENT_SERVER | ||
int | ||
#ifdef NXAGENT_SERVER | ||
xorg_InitClientPrivates(ClientPtr client) | ||
#else | ||
InitClientPrivates(ClientPtr client) | ||
#endif | ||
{ | ||
register char *ptr; | ||
DevUnion *ppriv; | ||
|
@@ -3687,7 +3694,6 @@ InitClientPrivates(ClientPtr client) | |
} | ||
return 1; | ||
} | ||
#endif /* NXAGENT_SERVER */ | ||
|
||
/************************ | ||
* int NextAvailableClient(ospriv) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,10 @@ extern int extensionPrivateLen; | |
extern unsigned *extensionPrivateSizes; | ||
extern unsigned totalExtensionSize; | ||
|
||
#ifdef NXAGENT_SERVER | ||
#include "NXhooks.h" | ||
#endif | ||
|
||
static void | ||
InitExtensionPrivates(ExtensionEntry *ext) | ||
{ | ||
|
@@ -332,7 +336,6 @@ CloseDownExtensions() | |
} | ||
} | ||
|
||
#ifndef NXAGENT_SERVER | ||
int | ||
ProcQueryExtension(ClientPtr client) | ||
{ | ||
|
@@ -354,6 +357,9 @@ ProcQueryExtension(ClientPtr client) | |
{ | ||
i = FindExtension((char *)&stuff[1], stuff->nbytes); | ||
if (i < 0 | ||
#ifdef NXAGENT_SERVER | ||
|| nxagentHook_IsFaultyRenderExtension(extensions[i]->name) | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move this bit into nxagent DDX code, then it is ok. |
||
#ifdef XCSECURITY | ||
/* don't show insecure extensions to untrusted clients */ | ||
|| (client->trustLevel == XSecurityClientUntrusted && | ||
|
@@ -400,6 +406,10 @@ ProcListExtensions(ClientPtr client) | |
if (client->trustLevel == XSecurityClientUntrusted && | ||
!extensions[i]->secure) | ||
continue; | ||
#endif | ||
#ifdef NXAGENT_SERVER | ||
if (nxagentHook_IsFaultyRenderExtension(extensions[i]->name)) | ||
continue; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move to DDX code base. |
||
#endif | ||
total_length += strlen(extensions[i]->name) + 1; | ||
reply.nExtensions += 1 + extensions[i]->num_aliases; | ||
|
@@ -437,7 +447,6 @@ ProcListExtensions(ClientPtr client) | |
} | ||
return(client->noClientException); | ||
} | ||
#endif | ||
|
||
ExtensionLookupProc | ||
LookupProc(char *name, GCPtr pGC) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the xorg_* namespace here?