head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.31; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.31; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.22; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.51; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxwindow.h File Reference

#include "windowstr.h"

Go to the source code of this file.

Data Structures

struct  _dmxWinPriv

Defines

#define DMX_GET_WINDOW_PRIV(_pWin)   ((dmxWinPrivPtr)(_pWin)->devPrivates[dmxWinPrivateIndex].ptr)

Typedefs

typedef _dmxWinPriv dmxWinPrivRec
typedef _dmxWinPrivdmxWinPrivPtr

Functions

Bool dmxInitWindow (ScreenPtr pScreen)
void dmxCreateAndRealizeWindow (WindowPtr pWindow, Bool doSync)
Bool dmxCreateWindow (WindowPtr pWindow)
Bool dmxDestroyWindow (WindowPtr pWindow)
Bool dmxPositionWindow (WindowPtr pWindow, int x, int y)
Bool dmxChangeWindowAttributes (WindowPtr pWindow, unsigned long mask)
Bool dmxRealizeWindow (WindowPtr pWindow)
Bool dmxUnrealizeWindow (WindowPtr pWindow)
void dmxRestackWindow (WindowPtr pWindow, WindowPtr pOldNextSib)
void dmxWindowExposures (WindowPtr pWindow, RegionPtr prgn, RegionPtr other_exposed)
void dmxPaintWindowBackground (WindowPtr pWindow, RegionPtr pRegion, int what)
void dmxPaintWindowBorder (WindowPtr pWindow, RegionPtr pRegion, int what)
void dmxCopyWindow (WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
void dmxResizeWindow (WindowPtr pWindow, int x, int y, unsigned int w, unsigned int h, WindowPtr pSib)
void dmxReparentWindow (WindowPtr pWindow, WindowPtr pPriorParent)
void dmxChangeBorderWidth (WindowPtr pWindow, unsigned int width)
void dmxResizeScreenWindow (ScreenPtr pScreen, int x, int y, int w, int h)
void dmxResizeRootWindow (WindowPtr pRoot, int x, int y, int w, int h)
Bool dmxBEDestroyWindow (WindowPtr pWindow)
void dmxSetShape (WindowPtr pWindow)

Variables

int dmxWinPrivateIndex


Detailed Description

Interface for window support.
See also:
dmxwindow.c

Define Documentation

#define DMX_GET_WINDOW_PRIV _pWin   )     ((dmxWinPrivPtr)(_pWin)->devPrivates[dmxWinPrivateIndex].ptr)
 

Get window private pointer.


Typedef Documentation

typedef struct _dmxWinPriv * dmxWinPrivPtr
 

Window private area.

typedef struct _dmxWinPriv dmxWinPrivRec
 

Window private area.


Function Documentation

Bool dmxBEDestroyWindow WindowPtr  pWindow  ) 
 

Destroy pWindow on the back-end server.

void dmxChangeBorderWidth WindowPtr  pWindow,
unsigned int  width
 

Change border width for pWindow to width pixels.

Bool dmxChangeWindowAttributes WindowPtr  pWindow,
unsigned long  mask
 

Change the window attributes of pWindow.

void dmxCopyWindow WindowPtr  pWindow,
DDXPointRec  ptOldOrg,
RegionPtr  prgnSrc
 

Move pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

void dmxCreateAndRealizeWindow WindowPtr  pWindow,
Bool  doSync
 

This function handles lazy window creation and realization. Window creation is handled by dmxCreateNonRootWindow(). It also handles any stacking changes that have occured since the window was originally created by calling dmxDoRestackWindow(). If the window is shaped, the shape is set on the back-end server by calling dmxDoSetShape(), and if the window has pictures (from RENDER) associated with it, those pictures are created on the back-end server by calling dmxCreatePictureList(). If doSync is TRUE, then dmxSync() is called.

Bool dmxCreateWindow WindowPtr  pWindow  ) 
 

Create pWindow on the back-end server. If the lazy window creation optimization is enabled, then the actual creation and realization of the window is handled by dmxCreateAndRealizeWindow().

Bool dmxDestroyWindow WindowPtr  pWindow  ) 
 

Destroy pWindow on the back-end server. If any RENDER pictures were created, destroy them as well.

Bool dmxInitWindow ScreenPtr  pScreen  ) 
 

Initialize the private area for the window functions.

void dmxPaintWindowBackground WindowPtr  pWindow,
RegionPtr  pRegion,
int  what
 

Paint background of pWindow in pRegion.

void dmxPaintWindowBorder WindowPtr  pWindow,
RegionPtr  pRegion,
int  what
 

Paint window border for pWindow in pRegion.

Bool dmxPositionWindow WindowPtr  pWindow,
int  x,
int  y
 

Change the position of pWindow to be x, y.

Bool dmxRealizeWindow WindowPtr  pWindow  ) 
 

Realize pWindow on the back-end server. If the lazy window creation optimization is enabled, the window is only realized when it at least partially overlaps the screen.

void dmxReparentWindow WindowPtr  pWindow,
WindowPtr  pPriorParent
 

Reparent pWindow on the back-end server.

void dmxResizeRootWindow WindowPtr  pRoot,
int  x,
int  y,
int  w,
int  h
 

Change the location and size of the "root" window. Called from #dmxReconfigureRootWindow().

void dmxResizeScreenWindow ScreenPtr  pScreen,
int  x,
int  y,
int  w,
int  h
 

Change the location and size of the "screen" window. Called from #dmxReconfigureScreenWindow().

void dmxResizeWindow WindowPtr  pWindow,
int  x,
int  y,
unsigned int  w,
unsigned int  h,
WindowPtr  pSib
 

Resize pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

void dmxRestackWindow WindowPtr  pWindow,
WindowPtr  pOldNextSib
 

Handle window restacking. The actual restacking occurs in dmxDoRestackWindow().

void dmxSetShape WindowPtr  pWindow  ) 
 

Set shape of pWindow on the back-end server.

Bool dmxUnrealizeWindow WindowPtr  pWindow  ) 
 

Unrealize pWindow on the back-end server.

void dmxWindowExposures WindowPtr  pWindow,
RegionPtr  prgn,
RegionPtr  other_exposed
 

Handle exposures on pWindow. Since window exposures are handled in DMX, the events that are generated by the back-end server are redundant, so we eat them here.


Variable Documentation

int dmxWinPrivateIndex
 

Private index for Windows


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 3 a11 27

dmxwindow.h File Reference

#include "windowstr.h"
d13 48 a60 64

Go to the source code of this file.

Data Structures

struct  _dmxWinPriv

Defines

#define DMX_GET_WINDOW_PRIV(_pWin)
#define DMX_WINDOW_FUNC_PROLOGUE(_pGC)
#define DMX_WINDOW_FUNC_EPILOGUE(_pGC)
#define DMX_WINDOW_X1(_pWin)   ((_pWin)->drawable.x - wBorderWidth(_pWin))
#define DMX_WINDOW_Y1(_pWin)   ((_pWin)->drawable.y - wBorderWidth(_pWin))
#define DMX_WINDOW_X2(_pWin)   ((_pWin)->drawable.x + wBorderWidth(_pWin) + (_pWin)->drawable.width)
#define DMX_WINDOW_Y2(_pWin)   ((_pWin)->drawable.y + wBorderWidth(_pWin) + (_pWin)->drawable.height)
#define DMX_WINDOW_OFFSCREEN(_pWin)

Typedefs

typedef struct _dmxWinPriv dmxWinPrivRec
typedef struct _dmxWinPrivdmxWinPrivPtr

Functions

Bool dmxInitWindow (ScreenPtr pScreen)
Window dmxCreateRootWindow (WindowPtr pWindow)
void dmxGetDefaultWindowAttributes (WindowPtr pWindow, Colormap *cmap, Visual **visual)
void dmxCreateAndRealizeWindow (WindowPtr pWindow, Bool doSync)
Bool dmxCreateWindow (WindowPtr pWindow)
Bool dmxDestroyWindow (WindowPtr pWindow)
Bool dmxPositionWindow (WindowPtr pWindow, int x, int y)
Bool dmxChangeWindowAttributes (WindowPtr pWindow, unsigned long mask)
Bool dmxRealizeWindow (WindowPtr pWindow)
Bool dmxUnrealizeWindow (WindowPtr pWindow)
void dmxRestackWindow (WindowPtr pWindow, WindowPtr pOldNextSib)
void dmxWindowExposures (WindowPtr pWindow, RegionPtr prgn, RegionPtr other_exposed)
void dmxCopyWindow (WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
void dmxResizeWindow (WindowPtr pWindow, int x, int y, unsigned int w, unsigned int h, WindowPtr pSib)
void dmxReparentWindow (WindowPtr pWindow, WindowPtr pPriorParent)
void dmxChangeBorderWidth (WindowPtr pWindow, unsigned int width)
void dmxResizeScreenWindow (ScreenPtr pScreen, int x, int y, int w, int h)
void dmxResizeRootWindow (WindowPtr pRoot, int x, int y, int w, int h)
Bool dmxBEDestroyWindow (WindowPtr pWindow)
void dmxSetShape (WindowPtr pWindow, int kind)

Detailed Description

Interface for window support.

See also:
dmxwindow.c

Define Documentation

#define DMX_WINDOW_FUNC_EPILOGUE (   _pGC  ) 
Value:
do {                                                                    \
    dmxGCPrivPtr pGCPriv = DMX_GET_GC_PRIV(_pGC);                       \
    DMX_WRAP(funcs, &dmxGCFuncs, pGCPriv, (_pGC));                      \
    if (pGCPriv->ops)                                                   \
        DMX_WRAP(ops, &dmxGCOps, pGCPriv, (_pGC));                      \
} while (0)
#define DMX_WINDOW_FUNC_PROLOGUE (   _pGC  ) 
Value:
do {                                                                    \
    dmxGCPrivPtr pGCPriv = DMX_GET_GC_PRIV(_pGC);                       \
    DMX_UNWRAP(funcs, pGCPriv, (_pGC));                                 \
    if (pGCPriv->ops)                                                   \
        DMX_UNWRAP(ops, pGCPriv, (_pGC));                               \
} while (0)
#define DMX_WINDOW_OFFSCREEN (   _pWin  ) 
Value:
(DMX_WINDOW_X1(_pWin) >= (_pWin)->drawable.pScreen->width  ||   \
     DMX_WINDOW_Y1(_pWin) >= (_pWin)->drawable.pScreen->height ||       \
     DMX_WINDOW_X2(_pWin) <= 0                                 ||       \
     DMX_WINDOW_Y2(_pWin) <= 0)

Referenced by dmxCopyWindow(), dmxPositionWindow(), dmxRealizeWindow(), and dmxResizeWindow().

d66 1 a66 17
#define DMX_WINDOW_X1 (   _pWin  )     ((_pWin)->drawable.x - wBorderWidth(_pWin))
d68 2 a69 17
#define DMX_WINDOW_X2 (   _pWin  )     ((_pWin)->drawable.x + wBorderWidth(_pWin) + (_pWin)->drawable.width)
d71 16 a86 14
d88 20 a107 9
#define DMX_WINDOW_Y1 (   _pWin  )     ((_pWin)->drawable.y - wBorderWidth(_pWin))
d109 1 a109 7 d111 19 a129 10

Typedef Documentation

#define DMX_WINDOW_Y2 (   _pWin  )     ((_pWin)->drawable.y + wBorderWidth(_pWin) + (_pWin)->drawable.height)
d131 1 a131 2 d133 27 a159 11
typedef struct _dmxWinPriv * dmxWinPrivPtr
a160 4
typedef struct _dmxWinPriv dmxWinPrivRec

Window private area.

a161 15

Function Documentation

d163 19 a181 14

Destroy pWindow on the back-end server.

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, dmxScreens, and _dmxWinPriv::window.

Referenced by dmxBEDestroyWindowTree(), and dmxDestroyWindow().

Bool dmxBEDestroyWindow ( WindowPtr  pWindow  ) 
d183 4 a186 4 a188 1 d190 3 a192 2 d196 2 a197 2 d199 1 d201 19 a219 14
void dmxChangeBorderWidth ( WindowPtr  pWindow, unsigned int  width )
d221 4 a224 4 a226 1 d228 3 a230 2 d234 2 a235 2 d237 1 d239 19 a257 14
Bool dmxChangeWindowAttributes ( WindowPtr  pWindow, unsigned long  mask )
d259 4 a262 4 a264 1 d266 3 a268 2 a270 1 d272 3 a274 2 d278 2 a279 2 d281 1 d283 19 a301 14

Move pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_UPDATE_COPY, DMX_WINDOW_OFFSCREEN, DMX_WRAP, dmxCopyWindow(), dmxCreateAndRealizeWindow(), dmxScreens, dmxSync(), dmxUpdateWindowInfo(), _dmxWinPriv::mapped, _dmxWinPriv::offscreen, and _dmxWinPriv::window.

Referenced by dmxCopyWindow(), and dmxScreenInit().

void dmxCopyWindow ( WindowPtr  pWindow, DDXPointRec  ptOldOrg, RegionPtr  prgnSrc )
d303 4 a306 4 a308 1 d310 3 a312 2 d316 2 a317 2 d319 1 d321 27 a347 3

This function handles lazy window creation and realization. Window creation is handled by dmxCreateNonRootWindow(). It also handles any stacking changes that have occured since the window was originally created by calling dmxDoRestackWindow(). If the window is shaped, the shape is set on the back-end server by calling dmxDoSetShape(), and if the window has pictures (from RENDER) associated with it, those pictures are created on the back-end server by calling dmxCreatePictureList(). If doSync is TRUE, then dmxSync() is called.

d349 28 a376 1

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, dmxCreateNonRootWindow(), dmxCreatePictureList(), dmxDoRestackWindow(), dmxDoSetShape(), dmxScreens, dmxSync(), _dmxWinPriv::hasPict, _dmxWinPriv::isShaped, _dmxWinPriv::mapped, _dmxWinPriv::restacked, and _dmxWinPriv::window.

d378 28 a405 1

Referenced by dmxBECreateWindowTree(), dmxCopyWindow(), dmxCreateNonRootWindow(), dmxForceWindowCreation(), dmxPositionWindow(), dmxRealizeWindow(), dmxReparentWindow(), and dmxResizeWindow().

d407 26 a432 6
void dmxCreateAndRealizeWindow ( WindowPtr  pWindow, Bool  doSync )
a433 5 d435 3 a438 14
Window dmxCreateRootWindow ( WindowPtr  pWindow  ) 
a445 5 d447 2 d450 1 d452 19 a470 14

Destroy pWindow on the back-end server. If any RENDER pictures were created, destroy them as well.

References DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_WRAP, dmxBEDestroyWindow(), dmxDestroyPictureList(), dmxDestroyWindow(), dmxScreens, and dmxSync().

Referenced by dmxDestroyWindow(), and dmxScreenInit().

Bool dmxDestroyWindow ( WindowPtr  pWindow  ) 
d472 4 a475 4 a477 1 d479 3 a481 2 a483 1 d485 3 a487 2 d491 2 a492 2 a493 3
void dmxGetDefaultWindowAttributes ( WindowPtr  pWindow, Colormap *  cmap, Visual **  visual )
d496 19 a514 14

Initialize the private area for the window functions.

References dmxWinPrivateKeyRec.

Referenced by dmxScreenInit().

Bool dmxInitWindow ( ScreenPtr  pScreen  ) 
d516 4 a519 4 a521 1 d523 3 a525 2 a527 1 d529 3 a531 2 d535 2 a536 2 d538 1 d540 27 a566 5
Bool dmxPositionWindow ( WindowPtr  pWindow, int  x, int  y )
d569 19 a587 14

Realize pWindow on the back-end server. If the lazy window creation optimization is enabled, the window is only realized when it at least partially overlaps the screen.

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_UPDATE_REALIZE, DMX_WINDOW_OFFSCREEN, DMX_WRAP, dmxCreateAndRealizeWindow(), dmxRealizeWindow(), dmxScreens, dmxSync(), dmxUpdateWindowInfo(), _dmxWinPriv::mapped, _dmxWinPriv::offscreen, and _dmxWinPriv::window.

Referenced by dmxRealizeWindow(), and dmxScreenInit().

Bool dmxRealizeWindow ( WindowPtr  pWindow  ) 
d589 4 a592 4 a594 1 d596 3 a598 2 d602 2 a603 2 d605 1 d607 19 a625 14
void dmxReparentWindow ( WindowPtr  pWindow, WindowPtr  pPriorParent )
d627 4 a630 4 a632 1 d634 3 a636 2 a638 1 d640 3 a642 2 a644 1 d646 3 a648 2 a650 1 d652 3 a654 2 d658 2 a659 2 d661 1 d663 19 a681 14

Change the location and size of the "root" window. Called from dmxConfigureRootWindow.

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, dmxScreens, dmxSync(), _dmxWinPriv::mapped, and _dmxWinPriv::window.

Referenced by dmxCreateWindow().

void dmxResizeRootWindow ( WindowPtr  pRoot, int  x, int  y, int  w, int  h )
d683 4 a686 4 a688 1 d690 3 a692 2 a694 1 d696 3 a698 2 a700 1 d702 3 a704 2 a706 1 d708 3 a710 2 d714 2 a715 2 d717 1 d719 19 a737 12

Change the location and size of the "screen" window. Called from dmxConfigureScreenWindow().

References _DMXScreenInfo::beDisplay, dmxScreens, dmxSync(), and _DMXScreenInfo::scrnWin.

void dmxResizeScreenWindow ( ScreenPtr  pScreen, int  x, int  y, int  w, int  h )
d739 4 a742 4 a744 1 d746 3 a748 2 a750 1 d752 3 a754 2 a756 1 d758 3 a760 2 a762 1 d764 3 a766 2 a768 1 d770 3 a772 2 d776 2 a777 2 d779 1 d781 19 a799 14

Resize pWindow on the back-end server. Determine whether or not it is on or offscreen, and realize it if it is newly on screen and the lazy window creation optimization is enabled.

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_UPDATE_RESIZE, DMX_WINDOW_OFFSCREEN, DMX_WRAP, dmxCreateAndRealizeWindow(), dmxResizeWindow(), dmxScreens, dmxSync(), dmxUpdateWindowInfo(), _dmxWinPriv::mapped, _dmxWinPriv::offscreen, and _dmxWinPriv::window.

Referenced by dmxResizeWindow(), and dmxScreenInit().

void dmxResizeWindow ( WindowPtr  pWindow, int  x, int  y, unsigned int  w, unsigned int  h, WindowPtr  pSib )
d801 4 a804 4 a806 1 d808 3 a810 2 d814 2 a815 2 d817 1 d819 27 a845 3
void dmxRestackWindow ( WindowPtr  pWindow, WindowPtr  pOldNextSib )
d897 4 a900 4 a902 1 a903 4 d905 2 a906 2 a907 15
void dmxSetShape ( WindowPtr  pWindow, int  kind 
)
a908 5 a909 24
Bool dmxUnrealizeWindow ( WindowPtr  pWindow  ) 
d911 2 a912 2 a914 1 d916 2 a917 2 d919 22 d942 1 a942 4 d944 14 a957 11

Handle exposures on pWindow. Since window exposures are handled in DMX, the events that are generated by the back-end server are redundant, so we eat them here.

References _DMXScreenInfo::beDisplay, DMX_GET_WINDOW_PRIV, DMX_UNWRAP, DMX_WRAP, dmxScreens, dmxSync(), dmxWindowExposurePredicate(), dmxWindowExposures(), and _dmxWinPriv::window.

Referenced by dmxScreenInit(), and dmxWindowExposures().

@ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2 d44 8 a51 8 d54 2 a55 2 d58 20 a77 20 d79 2 a80 2

Detailed Description

Interface for window support.

d82 1 a82 1

Define Documentation

d90 3 a92 2 d98 2 a99 2 Value:
((dmxWinPrivPtr) \
    dixLookupPrivate(&(_pWin)->devPrivates, dmxWinPrivateKey))
d113 3
a115 2
          
d137 3 a139 2 d161 3 a163 2 d185 4 a188 3 d203 4 a206 3 d221 4 a224 3 d239 4 a242 3 d286 3 a288 2 d309 2 a310 2 d315 2 a316 2 d321 1 a321 1 d341 2 a342 2 d347 2 a348 2 d353 1 a353 1 d373 2 a374 2 d379 2 a380 2 d385 2 a386 2 d391 1 a391 1 d411 2 a412 2 d417 2 a418 2 d423 1 a423 1 d443 3 a445 2 d465 3 a467 2 d488 3 a490 2 d511 2 a512 2 d517 2 a518 2 d523 2 a524 2 d529 1 a529 1 d548 3 a550 2 d571 2 a572 2 d577 2 a578 2 d583 2 a584 2 d589 1 a589 1 d609 3 a611 2 d632 2 a633 2 d638 2 a639 2 d644 1 a644 1 d664 2 a665 2 d670 2 a671 2 d676 2 a677 2 d682 2 a683 2 d688 2 a689 2 d694 1 a694 1 d699 1 a699 1

Change the location and size of the "root" window. Called from #dmxConfigureRootWindow.

d714 2 a715 2 d720 2 a721 2 d726 2 a727 2 d732 2 a733 2 d738 2 a739 2 d744 1 a744 1 d749 1 a749 1

Change the location and size of the "screen" window. Called from #dmxConfigureScreenWindow().

d762 2 a763 2 d768 2 a769 2 d774 2 a775 2 d780 2 a781 2 d786 2 a787 2 d792 2 a793 2 d798 1 a798 1 d818 2 a819 2 d824 2 a825 2 d830 1 a830 1 d850 2 a851 2 d856 2 a857 2 d862 1 a862 1 d882 3 a884 2 d905 2 a906 2 d911 2 a912 2 d917 2 a918 2 d923 1 a923 1 a936 4
void dmxWindowExposures ( WindowPtr  pWindow,
RegionPtr  prgn, RegionPtr  other_exposed  )
struct  _dmxWinPriv
#define DMX_GET_WINDOW_PRIV(_pWin)
#define DMX_WINDOW_FUNC_PROLOGUE(_pGC)
#define DMX_WINDOW_FUNC_EPILOGUE(_pGC)
#define DMX_WINDOW_X1(_pWin)   ((_pWin)->drawable.x - wBorderWidth(_pWin))
#define DMX_WINDOW_Y1(_pWin)   ((_pWin)->drawable.y - wBorderWidth(_pWin))
#define DMX_WINDOW_X2(_pWin)   ((_pWin)->drawable.x + wBorderWidth(_pWin) + (_pWin)->drawable.width)
#define DMX_WINDOW_Y2(_pWin)   ((_pWin)->drawable.y + wBorderWidth(_pWin) + (_pWin)->drawable.height)
#define DMX_WINDOW_OFFSCREEN(_pWin)
typedef struct _dmxWinPriv dmxWinPrivRec
typedef struct _dmxWinPrivdmxWinPrivPtr
Bool dmxInitWindow (ScreenPtr pScreen)
Window dmxCreateRootWindow (WindowPtr pWindow)
void dmxGetDefaultWindowAttributes (WindowPtr pWindow, Colormap *cmap, Visual **visual)
void dmxCreateAndRealizeWindow (WindowPtr pWindow, Bool doSync)
Bool dmxCreateWindow (WindowPtr pWindow)
Bool dmxDestroyWindow (WindowPtr pWindow)
Bool dmxPositionWindow (WindowPtr pWindow, int x, int y)
Bool dmxChangeWindowAttributes (WindowPtr pWindow, unsigned long mask)
Bool dmxRealizeWindow (WindowPtr pWindow)
Bool dmxUnrealizeWindow (WindowPtr pWindow)
void dmxRestackWindow (WindowPtr pWindow, WindowPtr pOldNextSib)
void dmxWindowExposures (WindowPtr pWindow, RegionPtr prgn, RegionPtr other_exposed)
void dmxCopyWindow (WindowPtr pWindow, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
void dmxResizeWindow (WindowPtr pWindow, int x, int y, unsigned int w, unsigned int h, WindowPtr pSib)
void dmxReparentWindow (WindowPtr pWindow, WindowPtr pPriorParent)
void dmxChangeBorderWidth (WindowPtr pWindow, unsigned int width)
void dmxResizeScreenWindow (ScreenPtr pScreen, int x, int y, int w, int h)
void dmxResizeRootWindow (WindowPtr pRoot, int x, int y, int w, int h)
Bool dmxBEDestroyWindow (WindowPtr pWindow)
void dmxSetShape (WindowPtr pWindow, int kind)
  _pWin)  _pGC)  _pGC)  _pWin)  _pWin)    ((_pWin)->drawable.x - wBorderWidth(_pWin))  _pWin)    ((_pWin)->drawable.x + wBorderWidth(_pWin) + (_pWin)->drawable.width)  _pWin)    ((_pWin)->drawable.y - wBorderWidth(_pWin))  _pWin)    ((_pWin)->drawable.y + wBorderWidth(_pWin) + (_pWin)->drawable.height)WindowPtr  pWindow)WindowPtr  pWindow, unsigned int  width WindowPtr  pWindow, unsigned long  mask WindowPtr  pWindow, DDXPointRec  ptOldOrg, RegionPtr  prgnSrc WindowPtr  pWindow, Bool  doSync WindowPtr  pWindow)WindowPtr  pWindow)WindowPtr  pWindow)WindowPtr  pWindow, Colormap *  cmap, Visual **  visual ScreenPtr  pScreen)WindowPtr  pWindow, int  x, int  y WindowPtr  pWindow)WindowPtr  pWindow, WindowPtr  pPriorParent WindowPtr  pRoot, int  x, int  y, int  w, int  h ScreenPtr  pScreen, int  x, int  y, int  w, int  h WindowPtr  pWindow, int  x, int  y, unsigned int  w, unsigned int  h, WindowPtr  pSib WindowPtr  pWindow, WindowPtr  pOldNextSib WindowPtr  pWindow, int  kind WindowPtr  pWindow)WindowPtr  pWindow, RegionPtr  prgn, RegionPtr  other_exposed