aboutsummaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-01-10 16:47:56 +0100
committerPierre Ossman <ossman@cendio.se>2024-01-10 16:47:56 +0100
commit7ad74d14160028fd709f595e9441c369cc4cd17e (patch)
tree2a92a4d700b96e2176e6196dd8a671b0a947406a /unix/xserver/hw
parenta9ac7ae94c2922e8baefb7e293213ff8db8f560a (diff)
downloadtigervnc-7ad74d14160028fd709f595e9441c369cc4cd17e.tar.gz
tigervnc-7ad74d14160028fd709f595e9441c369cc4cd17e.zip
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.
Diffstat (limited to 'unix/xserver/hw')
-rw-r--r--unix/xserver/hw/vnc/xvnc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c
index c07f6899..16a28831 100644
--- a/unix/xserver/hw/vnc/xvnc.c
+++ b/unix/xserver/hw/vnc/xvnc.c
@@ -992,8 +992,6 @@ vncScreenInit(ScreenPtr pScreen, int argc, char **argv)
vncFbptr[0] = pbits;
vncFbstride[0] = vncScreenInfo.fb.paddedWidth;
- miSetPixmapDepths();
-
switch (vncScreenInfo.fb.depth) {
case 16:
miSetVisualTypesAndMasks(16,
@@ -1018,6 +1016,8 @@ vncScreenInit(ScreenPtr pScreen, int argc, char **argv)
return FALSE;
}
+ miSetPixmapDepths();
+
ret = fbScreenInit(pScreen, pbits,
vncScreenInfo.fb.width, vncScreenInfo.fb.height,
dpi, dpi, vncScreenInfo.fb.paddedWidth,