~ubuntu-branches/ubuntu/karmic/virtualbox-ose/karmic-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/xorg-server-1.5.3/compint.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2006 Sun Microsystems
3
 
 *
4
 
 * Permission to use, copy, modify, distribute, and sell this software and its
5
 
 * documentation for any purpose is hereby granted without fee, provided that
6
 
 * the above copyright notice appear in all copies and that both that
7
 
 * copyright notice and this permission notice appear in supporting
8
 
 * documentation, and that the name of Sun Microsystems not be used in
9
 
 * advertising or publicity pertaining to distribution of the software without
10
 
 * specific, written prior permission.  Sun Microsystems makes no
11
 
 * representations about the suitability of this software for any purpose.  It
12
 
 * is provided "as is" without express or implied warranty.
13
 
 *
14
 
 * SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15
 
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16
 
 * EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17
 
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18
 
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19
 
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
 
 * PERFORMANCE OF THIS SOFTWARE.
21
 
 *
22
 
 * Copyright © 2003 Keith Packard
23
 
 *
24
 
 * Permission to use, copy, modify, distribute, and sell this software and its
25
 
 * documentation for any purpose is hereby granted without fee, provided that
26
 
 * the above copyright notice appear in all copies and that both that
27
 
 * copyright notice and this permission notice appear in supporting
28
 
 * documentation, and that the name of Keith Packard not be used in
29
 
 * advertising or publicity pertaining to distribution of the software without
30
 
 * specific, written prior permission.  Keith Packard makes no
31
 
 * representations about the suitability of this software for any purpose.  It
32
 
 * is provided "as is" without express or implied warranty.
33
 
 *
34
 
 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
35
 
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
36
 
 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
37
 
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
38
 
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
39
 
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
 
 * PERFORMANCE OF THIS SOFTWARE.
41
 
 */
42
 
 
43
 
#ifdef HAVE_DIX_CONFIG_H
44
 
#include <dix-config.h>
45
 
#endif
46
 
 
47
 
#ifndef _COMPINT_H_
48
 
#define _COMPINT_H_
49
 
 
50
 
#include "misc.h"
51
 
#include "scrnintstr.h"
52
 
#include "os.h"
53
 
#include "regionstr.h"
54
 
#include "validate.h"
55
 
#include "windowstr.h"
56
 
#include "input.h"
57
 
#include "resource.h"
58
 
#include "colormapst.h"
59
 
#include "cursorstr.h"
60
 
#include "dixstruct.h"
61
 
#include "gcstruct.h"
62
 
#include "servermd.h"
63
 
#include "dixevents.h"
64
 
#include "globals.h"
65
 
#include "picturestr.h"
66
 
#include "extnsionst.h"
67
 
#include "privates.h"
68
 
#include "mi.h"
69
 
#include "damage.h"
70
 
#include "damageextint.h"
71
 
#include "xfixes.h"
72
 
#include <X11/extensions/compositeproto.h>
73
 
#include <assert.h>
74
 
 
75
 
/*
76
 
 *  enable this for debugging
77
 
 
78
 
    #define COMPOSITE_DEBUG
79
 
 */
80
 
 
81
 
typedef struct _CompClientWindow {
82
 
    struct _CompClientWindow    *next;
83
 
    XID                         id;
84
 
    int                         update;
85
 
}  CompClientWindowRec, *CompClientWindowPtr;
86
 
 
87
 
typedef struct _CompWindow {
88
 
    RegionRec               borderClip;
89
 
    DamagePtr               damage;     /* for automatic update mode */
90
 
    Bool                    damageRegistered;
91
 
    Bool                    damaged;
92
 
    int                     update;
93
 
    CompClientWindowPtr     clients;
94
 
    int                     oldx;
95
 
    int                     oldy;
96
 
    PixmapPtr               pOldPixmap;
97
 
    int                     borderClipX, borderClipY;
98
 
} CompWindowRec, *CompWindowPtr;
99
 
 
100
 
#define COMP_ORIGIN_INVALID         0x80000000
101
 
 
102
 
typedef struct _CompSubwindows {
103
 
    int                     update;
104
 
    CompClientWindowPtr     clients;
105
 
} CompSubwindowsRec, *CompSubwindowsPtr;
106
 
 
107
 
#ifndef COMP_INCLUDE_RGB24_VISUAL
108
 
#define COMP_INCLUDE_RGB24_VISUAL 0
109
 
#endif
110
 
 
111
 
typedef struct _CompOverlayClientRec *CompOverlayClientPtr;
112
 
 
113
 
typedef struct _CompOverlayClientRec {
114
 
    CompOverlayClientPtr pNext;  
115
 
    ClientPtr            pClient;
116
 
    ScreenPtr            pScreen;
117
 
    XID                  resource;
118
 
} CompOverlayClientRec;
119
 
 
120
 
typedef struct _CompScreen {
121
 
    PositionWindowProcPtr       PositionWindow;
122
 
    CopyWindowProcPtr           CopyWindow;
123
 
    CreateWindowProcPtr         CreateWindow;
124
 
    DestroyWindowProcPtr        DestroyWindow;
125
 
    RealizeWindowProcPtr        RealizeWindow;
126
 
    UnrealizeWindowProcPtr      UnrealizeWindow;
127
 
    ClipNotifyProcPtr           ClipNotify;
128
 
    /*
129
 
     * Called from ConfigureWindow, these
130
 
     * three track changes to the offscreen storage
131
 
     * geometry
132
 
     */
133
 
    MoveWindowProcPtr           MoveWindow;
134
 
    ResizeWindowProcPtr         ResizeWindow;
135
 
    ChangeBorderWidthProcPtr    ChangeBorderWidth;
136
 
    /*
137
 
     * Reparenting has an effect on Subwindows redirect
138
 
     */
139
 
    ReparentWindowProcPtr       ReparentWindow;
140
 
    
141
 
    /*
142
 
     * Colormaps for new visuals better not get installed
143
 
     */
144
 
    InstallColormapProcPtr      InstallColormap;
145
 
 
146
 
    /*
147
 
     * Fake backing store via automatic redirection
148
 
     */
149
 
    ChangeWindowAttributesProcPtr ChangeWindowAttributes;
150
 
 
151
 
    ScreenBlockHandlerProcPtr   BlockHandler;
152
 
    CloseScreenProcPtr          CloseScreen;
153
 
    Bool                        damaged;
154
 
    int                         numAlternateVisuals;
155
 
    VisualID                    *alternateVisuals;
156
 
 
157
 
    WindowPtr                   pOverlayWin;
158
 
    CompOverlayClientPtr        pOverlayClients;
159
 
    
160
 
} CompScreenRec, *CompScreenPtr;
161
 
 
162
 
extern DevPrivateKey CompScreenPrivateKey;
163
 
extern DevPrivateKey CompWindowPrivateKey;
164
 
extern DevPrivateKey CompSubwindowsPrivateKey;
165
 
 
166
 
#define GetCompScreen(s) ((CompScreenPtr) \
167
 
    dixLookupPrivate(&(s)->devPrivates, CompScreenPrivateKey))
168
 
#define GetCompWindow(w) ((CompWindowPtr) \
169
 
    dixLookupPrivate(&(w)->devPrivates, CompWindowPrivateKey))
170
 
#define GetCompSubwindows(w) ((CompSubwindowsPtr) \
171
 
    dixLookupPrivate(&(w)->devPrivates, CompSubwindowsPrivateKey))
172
 
 
173
 
extern RESTYPE          CompositeClientWindowType;
174
 
extern RESTYPE          CompositeClientSubwindowsType;
175
 
 
176
 
/*
177
 
 * compalloc.c
178
 
 */
179
 
 
180
 
Bool
181
 
compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update);
182
 
 
183
 
void
184
 
compFreeClientWindow (WindowPtr pWin, XID id);
185
 
 
186
 
int
187
 
compUnredirectWindow (ClientPtr pClient, WindowPtr pWin, int update);
188
 
 
189
 
int
190
 
compRedirectSubwindows (ClientPtr pClient, WindowPtr pWin, int update);
191
 
 
192
 
void
193
 
compFreeClientSubwindows (WindowPtr pWin, XID id);
194
 
 
195
 
int
196
 
compUnredirectSubwindows (ClientPtr pClient, WindowPtr pWin, int update);
197
 
 
198
 
int
199
 
compRedirectOneSubwindow (WindowPtr pParent, WindowPtr pWin);
200
 
 
201
 
int
202
 
compUnredirectOneSubwindow (WindowPtr pParent, WindowPtr pWin);
203
 
 
204
 
Bool
205
 
compAllocPixmap (WindowPtr pWin);
206
 
 
207
 
void
208
 
compFreePixmap (WindowPtr pWin);
209
 
 
210
 
Bool
211
 
compReallocPixmap (WindowPtr pWin, int x, int y,
212
 
                   unsigned int w, unsigned int h, int bw);
213
 
 
214
 
/*
215
 
 * compext.c
216
 
 */
217
 
 
218
 
void
219
 
CompositeExtensionInit (void);
220
 
 
221
 
/*
222
 
 * compinit.c
223
 
 */
224
 
 
225
 
Bool
226
 
CompositeRegisterAlternateVisuals (ScreenPtr pScreen,
227
 
                                   VisualID *vids, int nVisuals);
228
 
 
229
 
Bool
230
 
compScreenInit (ScreenPtr pScreen);
231
 
 
232
 
/*
233
 
 * compwindow.c
234
 
 */
235
 
 
236
 
#ifdef COMPOSITE_DEBUG
237
 
void
238
 
compCheckTree (ScreenPtr pScreen);
239
 
#else
240
 
#define compCheckTree(s)
241
 
#endif
242
 
 
243
 
PictFormatPtr
244
 
compWindowFormat (WindowPtr pWin);
245
 
 
246
 
void
247
 
compSetPixmap (WindowPtr pWin, PixmapPtr pPixmap);
248
 
 
249
 
Bool
250
 
compCheckRedirect (WindowPtr pWin);
251
 
 
252
 
Bool
253
 
compPositionWindow (WindowPtr pWin, int x, int y);
254
 
 
255
 
Bool
256
 
compRealizeWindow (WindowPtr pWin);
257
 
 
258
 
Bool
259
 
compUnrealizeWindow (WindowPtr pWin);
260
 
 
261
 
void
262
 
compClipNotify (WindowPtr pWin, int dx, int dy);
263
 
 
264
 
void
265
 
compMoveWindow (WindowPtr pWin, int x, int y, WindowPtr pSib, VTKind kind);
266
 
 
267
 
void
268
 
compResizeWindow (WindowPtr pWin, int x, int y,
269
 
                  unsigned int w, unsigned int h, WindowPtr pSib);
270
 
 
271
 
void
272
 
compChangeBorderWidth (WindowPtr pWin, unsigned int border_width);
273
 
 
274
 
void
275
 
compReparentWindow (WindowPtr pWin, WindowPtr pPriorParent);
276
 
 
277
 
Bool
278
 
compCreateWindow (WindowPtr pWin);
279
 
 
280
 
Bool
281
 
compDestroyWindow (WindowPtr pWin);
282
 
 
283
 
void
284
 
compSetRedirectBorderClip (WindowPtr pWin, RegionPtr pRegion);
285
 
 
286
 
RegionPtr
287
 
compGetRedirectBorderClip (WindowPtr pWin);
288
 
 
289
 
void
290
 
compCopyWindow (WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc);
291
 
 
292
 
void
293
 
compWindowUpdate (WindowPtr pWin);
294
 
 
295
 
void
296
 
deleteCompOverlayClientsForScreen (ScreenPtr pScreen);
297
 
 
298
 
WindowPtr
299
 
CompositeRealChildHead (WindowPtr pWin);
300
 
 
301
 
int
302
 
DeleteWindowNoInputDevices(pointer value, XID wid);
303
 
 
304
 
#endif /* _COMPINT_H_ */