Compare commits
3 Commits
master
...
wip/rootle
Author | SHA1 | Date | |
---|---|---|---|
|
68157d4e8a | ||
|
1eb5bf7b61 | ||
|
3cd096e0c4 |
|
@ -280,7 +280,7 @@ else
|
||||||
build_xquartz = get_option('xquartz') == 'true'
|
build_xquartz = get_option('xquartz') == 'true'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
build_rootless = false
|
build_rootless = true
|
||||||
if build_xquartz
|
if build_xquartz
|
||||||
build_rootless = true
|
build_rootless = true
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -408,7 +408,6 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
|
||||||
xRectangle *prect;
|
xRectangle *prect;
|
||||||
int numRects, regionnumrects;
|
int numRects, regionnumrects;
|
||||||
#ifdef COMPOSITE
|
#ifdef COMPOSITE
|
||||||
WindowPtr orig_pWin = pWin;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -496,6 +495,7 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
|
||||||
#ifdef COMPOSITE
|
#ifdef COMPOSITE
|
||||||
/* Make sure alpha will sample as 1.0 for opaque windows */
|
/* Make sure alpha will sample as 1.0 for opaque windows */
|
||||||
if (drawable->depth == 32) {
|
if (drawable->depth == 32) {
|
||||||
|
WindowPtr orig_pWin = pWin;
|
||||||
int effective_depth = orig_pWin->drawable.depth;
|
int effective_depth = orig_pWin->drawable.depth;
|
||||||
|
|
||||||
if (effective_depth == 32) {
|
if (effective_depth == 32) {
|
||||||
|
|
|
@ -135,10 +135,8 @@ RootlessResolveColormap(ScreenPtr pScreen, int first_color,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long RootlessWID(WindowPtr pWindow) {
|
unsigned long RootlessWID(WindowPtr pWindow) {
|
||||||
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
|
||||||
WindowPtr top = TopLevelParent(pWindow);
|
WindowPtr top = TopLevelParent(pWindow);
|
||||||
RootlessWindowRec *winRec;
|
RootlessWindowRec *winRec;
|
||||||
PixmapPtr curPixmap;
|
|
||||||
|
|
||||||
if (top == NULL) {
|
if (top == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -795,24 +795,12 @@ StartFrameResize(WindowPtr pWin, Bool gravity,
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
RootlessWindowRec *winRec = WINREC(pWin);
|
RootlessWindowRec *winRec = WINREC(pWin);
|
||||||
|
|
||||||
BoxRec rect;
|
|
||||||
int oldX2, newX2;
|
|
||||||
int oldY2, newY2;
|
|
||||||
unsigned int weight;
|
unsigned int weight;
|
||||||
|
|
||||||
oldX2 = oldX + oldW, newX2 = newX + newW;
|
|
||||||
oldY2 = oldY + oldH, newY2 = newY + newH;
|
|
||||||
|
|
||||||
/* Decide which resize weighting to use */
|
/* Decide which resize weighting to use */
|
||||||
weight = ResizeWeighting(oldX, oldY, oldW, oldH, oldBW,
|
weight = ResizeWeighting(oldX, oldY, oldW, oldH, oldBW,
|
||||||
newX, newY, newW, newH, newBW);
|
newX, newY, newW, newH, newBW);
|
||||||
|
|
||||||
/* Compute intersection between old and new rects */
|
|
||||||
rect.x1 = max(oldX, newX);
|
|
||||||
rect.y1 = max(oldY, newY);
|
|
||||||
rect.x2 = min(oldX2, newX2);
|
|
||||||
rect.y2 = min(oldY2, newY2);
|
|
||||||
|
|
||||||
RL_DEBUG_MSG("RESIZE TOPLEVEL WINDOW with gravity %i ", gravity);
|
RL_DEBUG_MSG("RESIZE TOPLEVEL WINDOW with gravity %i ", gravity);
|
||||||
RL_DEBUG_MSG("%d %d %d %d %d %d %d %d %d %d\n",
|
RL_DEBUG_MSG("%d %d %d %d %d %d %d %d %d %d\n",
|
||||||
oldX, oldY, oldW, oldH, oldBW, newX, newY, newW, newH, newBW);
|
oldX, oldY, oldW, oldH, oldBW, newX, newY, newW, newH, newBW);
|
||||||
|
@ -849,8 +837,6 @@ FinishFrameResize(WindowPtr pWin, Bool gravity, int oldX, int oldY,
|
||||||
unsigned int newBW)
|
unsigned int newBW)
|
||||||
{
|
{
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
RootlessWindowRec *winRec = WINREC(pWin);
|
|
||||||
int i;
|
|
||||||
|
|
||||||
/* Redraw everything. FIXME: there must be times when we don't need
|
/* Redraw everything. FIXME: there must be times when we don't need
|
||||||
to do this. Perhaps when top-left weighting and no gravity? */
|
to do this. Perhaps when top-left weighting and no gravity? */
|
||||||
|
|
Loading…
Reference in New Issue