Skip to content

Commit 7ad74d1

Browse files
committed
Set Pixmap depths after creating visuals
This affects the ordering of visuals, which breaks some buggy applications that assume the first visual is the root window visual.
1 parent a9ac7ae commit 7ad74d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unix/xserver/hw/vnc/xvnc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,6 @@ vncScreenInit(ScreenPtr pScreen, int argc, char **argv)
992992
vncFbptr[0] = pbits;
993993
vncFbstride[0] = vncScreenInfo.fb.paddedWidth;
994994

995-
miSetPixmapDepths();
996-
997995
switch (vncScreenInfo.fb.depth) {
998996
case 16:
999997
miSetVisualTypesAndMasks(16,
@@ -1018,6 +1016,8 @@ vncScreenInit(ScreenPtr pScreen, int argc, char **argv)
10181016
return FALSE;
10191017
}
10201018

1019+
miSetPixmapDepths();
1020+
10211021
ret = fbScreenInit(pScreen, pbits,
10221022
vncScreenInfo.fb.width, vncScreenInfo.fb.height,
10231023
dpi, dpi, vncScreenInfo.fb.paddedWidth,

0 commit comments

Comments
 (0)