! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Decorations are not drawn with VNC
Status:
RESOLVED: FIXED
Component:
Decorations

Comments

Description Sean Davis editbugs 2020-04-18 16:24:31 CEST
Created attachment 9744 
screenshot of vnc session

When using Xfwm4 with VNC, the decorations are not drawn. Xfwm4 has seemingly not crashed, and the space for the window titlebar is reserved. A screenshot is attached.

Xfwm4 version 4.14.1, tightvncserver 1.3.10


~/.vnc/xstartup:
#!/bin/bash
xrdb $HOME/.Xresources
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &


Xfwm log:
(xfwm4:31976): xfwm4-WARNING **: 10:16:58.767: XSync extension too old (3.0).

(xfwm4:31976): xfwm4-WARNING **: 10:16:58.767: The display does not support the XRender extension.

(xfwm4:31976): xfwm4-WARNING **: 10:16:58.767: The display does not support the XRandr extension.

(xfwm4:31976): xfwm4-WARNING **: 10:16:58.769: The display does not support the XComposite extension.

(xfwm4:31976): xfwm4-WARNING **: 10:16:58.769: The display does not support the XDamage extension.

(xfwm4:31976): xfwm4-WARNING **: 10:16:58.769: The display does not support the XFixes extension.

(xfwm4:31976): xfwm4-WARNING **: 10:16:58.769: The display does not support the XPresent extension.

(xfwm4:31976): xfwm4-WARNING **: 10:16:58.769: Compositing manager disabled.
Waiting for current window manager (Xfwm4) on screen :1.0 to exit: Done
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>d'
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>Tab'
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>Down'
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>Left'
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>Right'
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>Up'
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>KP_1'
xfwm4-Message: 10:16:59.004: Unsupported keyboard modifier '<Super>KP_3'
xfwm4-Message: 10:16:59.005: Unsupported keyboard modifier '<Super>KP_7'
xfwm4-Message: 10:16:59.005: Unsupported keyboard modifier '<Super>KP_9'

(xfwm4:31976): xfwm4-WARNING **: 10:16:59.018: Cannot find visual format on screen 0
Comment 1 Olivier Fourdan editbugs 2020-04-18 18:39:25 CEST
Does `xfwm4 --replace --compositor=off` work?
Comment 2 Olivier Fourdan editbugs 2020-04-18 18:53:56 CEST
FWIW it works just fine on tigervnc on Fedora 32.
Comment 3 Sean Davis editbugs 2020-04-18 20:03:51 CEST
It also doesn't work with the above command. I'll give Fedora 32 a go to see if that helps the situation for me.
Comment 4 Olivier Fourdan editbugs 2020-04-18 20:49:38 CEST
tigervnc, rather.

FWIW, I tried with 24 and 16 bpp, with and without the composite extension enabled and it worked fine in all cases.

You may also check (or post) the output of `xdpyinfo` on that server.
Comment 5 Olivier Fourdan editbugs 2020-04-20 20:13:00 CEST
Actually, the problem is the lack of XRender support in the tightvncserver Xserver.

xfwm4 is capable of running without XRender, but for some reason the mask of the pixmap end up being empty and therefore the pixmaps are all transparent.

Disabling XRender *and* XShape would work. But most gtk apps are not rendering well either in that setup so I am not sure that would take us very far.
Comment 6 Olivier Fourdan editbugs 2020-04-20 22:56:25 CEST
I believe this is a bug in gdk_pixbuf_get_pixels() which does not work without Render.

Not a bug in xfwm4.
Comment 7 Olivier Fourdan editbugs 2020-04-21 21:06:46 CEST
Oh, I think I know...
Comment 8 Git Bot editbugs 2020-04-21 21:10:10 CEST
Olivier Fourdan referenced this bugreport in commit 7bd23e3f2a0b63f6501bf6867468a232577bd9ec

pixmap: Fix rendering without XRender

https://git.xfce.org/xfce/xfwm4/commit?id=7bd23e3f2a0b63f6501bf6867468a232577bd9ec
Comment 9 Sean Davis editbugs 2020-04-22 12:41:26 CEST
That looks like it's probably it. :-) I'll test it out today.
Comment 10 Olivier Fourdan editbugs 2020-04-22 15:15:53 CEST
It fixes the issue with the lack of XRender in the server and '--compositor=off', but there's some more fixes needed with the compositor (or, rather, not using it).
Comment 11 Git Bot editbugs 2020-04-22 21:11:29 CEST
Olivier Fourdan referenced this bugreport in commit 2c78273d35abc60af697b571713809b00b40ce38

main: Don't use the compositor if not available

https://git.xfce.org/xfce/xfwm4/commit?id=2c78273d35abc60af697b571713809b00b40ce38
Comment 12 Git Bot editbugs 2020-05-01 17:47:10 CEST
Olivier Fourdan referenced this bugreport in commit f5bd7b83a41ca696a46eeba216063bce53411dca

pixmap: Fix rendering without XRender

https://gitlab.xfce.org/xfce/xfwm4/commit/f5bd7b83a41ca696a46eeba216063bce53411dca
Comment 13 Git Bot editbugs 2020-05-01 17:47:12 CEST
Olivier Fourdan referenced this bugreport in commit 124744bc834b7188eca87a675a3e4227ebb5fa82

main: Don't use the compositor if not available

https://gitlab.xfce.org/xfce/xfwm4/commit/124744bc834b7188eca87a675a3e4227ebb5fa82

Bug #16713

Reported by:
Sean Davis
Reported on: 2020-04-18
Last modified on: 2020-05-01

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Version:
4.14.0

Attachments

screenshot of vnc session (279.07 KB, image/png)
2020-04-18 16:24 CEST , Sean Davis
no flags

Additional information