mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Rootless: Abstract some of the Xplugin specific stuff which has crept into rootlessWindow.c
The rootless extension now directly calls some Xplugin functions, and relies on types defined in Xplugin.h, which isn't very abstracted :-) This patch is a start at abstracting some of the Xplugin specific stuff which has crept into rootlessWindow.c. This has been done in a pretty mindless fashion, without much thought as to if the additions to the generic rootless interface are the correct ones There is some confusion as to if RootlesscolormapCallback() returns a Bool or xp_error_enum value (not so abstact), but I have no way of checking, of finding out if Xplugin actually checks the result :-) Based on patches from Colin Harrison, Jon Turney and Yaakov Selkowitz Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
committed by
Keith Packard
parent
72f5874434
commit
5b91dfac6f
@@ -146,6 +146,7 @@ void RootlessStartDrawing(WindowPtr pWindow)
|
||||
ScreenPtr pScreen = pWindow->drawable.pScreen;
|
||||
WindowPtr top = TopLevelParent(pWindow);
|
||||
RootlessWindowRec *winRec;
|
||||
PixmapPtr curPixmap;
|
||||
|
||||
if (top == NULL)
|
||||
return;
|
||||
@@ -172,7 +173,7 @@ void RootlessStartDrawing(WindowPtr pWindow)
|
||||
winRec->is_drawing = TRUE;
|
||||
}
|
||||
|
||||
PixmapPtr curPixmap = pScreen->GetWindowPixmap(pWindow);
|
||||
curPixmap = pScreen->GetWindowPixmap(pWindow);
|
||||
if (curPixmap == winRec->pixmap)
|
||||
{
|
||||
RL_DEBUG_MSG("Window %p already has winRec->pixmap %p; not pushing\n", pWindow, winRec->pixmap);
|
||||
|
||||
Reference in New Issue
Block a user