Skip to content

Commit 7c47fa8

Browse files
committed
Add support for libvnc.so from tigervnc
* A lot of public api has been converted to private caused tigervnc to not even initialise. Expose necessary interfaces again.
1 parent 0ec0f00 commit 7c47fa8

File tree

21 files changed

+82
-41
lines changed

21 files changed

+82
-41
lines changed

Xext/namespace/hook-init-rootwindow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void hookInitRootWindow(CallbackListPtr *pcbl, void *data, void *screen)
4040
}
4141

4242
int rc = 0;
43-
WindowPtr pWin = dixCreateWindow(
43+
WindowPtr pWin = CreateWindow(
4444
FakeClientID(0), realRoot, 0, 0, 23, 23,
4545
0, /* bw */
4646
InputOutput,

Xext/saver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ CreateSaverWindow(ScreenPtr pScreen)
471471
if (GrabInProgress && GrabInProgress != pAttr->client->index)
472472
return FALSE;
473473

474-
pWin = dixCreateWindow(pSaver->wid, pScreen->root,
474+
pWin = CreateWindow(pSaver->wid, pScreen->root,
475475
pAttr->x, pAttr->y, pAttr->width, pAttr->height,
476476
pAttr->borderWidth, pAttr->class,
477477
pAttr->mask, (XID *) pAttr->values,

Xext/xace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int XaceHookIsSet(int hook);
6060
*/
6161
int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin, PropertyPtr *ppProp,
6262
Mask access_mode);
63-
int XaceHookSelectionAccess(ClientPtr ptr, Selection ** ppSel, Mask access_mode);
63+
_X_EXPORT int XaceHookSelectionAccess(ClientPtr ptr, Selection ** ppSel, Mask access_mode);
6464

6565
/* needs to be exported for in-tree modesetting, but not part of public API */
6666
_X_EXPORT int XaceHookResourceAccess(ClientPtr client, XID id, RESTYPE rtype, void *res,

composite/compoverlay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ compCreateOverlayWindow(ScreenPtr pScreen)
142142
#endif /* XINERAMA */
143143

144144
pWin = cs->pOverlayWin =
145-
dixCreateWindow(cs->overlayWid, pRoot, x, y, w, h, 0,
145+
CreateWindow(cs->overlayWid, pRoot, x, y, w, h, 0,
146146
InputOutput, CWBackPixmap | CWOverrideRedirect, &attrs[0],
147147
pRoot->drawable.depth,
148148
serverClient, pScreen->rootVisual, &result);

dix/callback_priv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define _XSERVER_CALLBACK_PRIV_H
77

88
#include "callback.h"
9+
#include <dix.h>
910

1011
void InitCallbackManager(void);
1112
void DeleteCallbackManager(void);

dix/dispatch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Equipment Corporation.
144144
#include "xkbsrv.h"
145145
#include "xfixesint.h"
146146
#include "dixstruct_priv.h"
147+
#include <window.h>
147148

148149
#define mskcnt ((MAXCLIENTS + 31) / 32)
149150
#define BITMASK(i) (1U << ((i) & 31))
@@ -745,7 +746,7 @@ int DoCreateWindowReq(ClientPtr client, xCreateWindowReq *stuff, XID *xids)
745746
client->errorValue = 0;
746747
return BadValue;
747748
}
748-
pWin = dixCreateWindow(stuff->wid, pParent, stuff->x,
749+
pWin = CreateWindow(stuff->wid, pParent, stuff->x,
749750
stuff->y, stuff->width, stuff->height,
750751
stuff->borderWidth, stuff->class,
751752
stuff->mask, (XID *) xids,
@@ -4257,4 +4258,3 @@ DetachOffloadGPU(ScreenPtr secondary)
42574258
assert(secondary->is_offload_secondary);
42584259
secondary->is_offload_secondary = FALSE;
42594260
}
4260-

dix/display.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
#include "dix/dix_priv.h"
88
#include "include/dix.h"
99
#include "include/screenint.h"
10+
#include <opaque.h>
1011

11-
const char *display = "0";
12+
char *display = (char *)"0";
1213
int displayfd = -1;
1314

1415
const char *dixGetDisplayName(ScreenPtr *pScreen)

dix/dix_priv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ extern int ScreenSaverBlanking;
292292
extern int ScreenSaverAllowExposures;
293293
extern int defaultScreenSaverBlanking;
294294
extern int defaultScreenSaverAllowExposures;
295-
extern const char *display;
296295
extern int displayfd;
297296
extern Bool explicit_display;
298297

dix/property_priv.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ typedef struct _PropertyFilterParam {
9494

9595
extern CallbackListPtr PropertyFilterCallback;
9696

97-
int dixLookupProperty(PropertyPtr *result, WindowPtr pWin, Atom proprty,
98-
ClientPtr pClient, Mask access_mode);
99-
10097
void DeleteAllWindowProperties(WindowPtr pWin);
10198

10299
#endif /* _XSERVER_PROPERTY_PRIV_H */

dix/selection_priv.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
#include "include/dixstruct.h"
1313
#include "include/privates.h"
1414

15-
typedef struct _Selection {
15+
struct _Selection {
1616
Atom selection;
1717
TimeStamp lastTimeChanged;
1818
Window window;
1919
WindowPtr pWin;
2020
ClientPtr client;
2121
struct _Selection *next;
2222
PrivateRec *devPrivates;
23-
} Selection;
23+
};
2424

2525
typedef enum {
2626
SelectionSetOwner,
@@ -56,18 +56,9 @@ typedef struct {
5656
Atom target;
5757
} SelectionFilterParamRec, *SelectionFilterParamPtr;
5858

59-
extern Selection *CurrentSelections;
60-
61-
extern CallbackListPtr SelectionCallback;
6259
extern CallbackListPtr SelectionFilterCallback;
6360

64-
int dixLookupSelection(Selection **result,
65-
Atom name,
66-
ClientPtr client,
67-
Mask access_mode);
68-
6961
void InitSelections(void);
70-
void DeleteWindowFromAnySelections(WindowPtr pWin);
7162
void DeleteClientFromAnySelections(ClientPtr client);
7263

7364
#endif /* _XSERVER_DIX_SELECTION_PRIV_H */

0 commit comments

Comments
 (0)