[BUG] LXQt: labwc is incorrectly reported when there is also a windowmanager under X11 configured

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

If, and only if LXQt has previously been configured on X11 to use a window manager, that wm name is shown when running LXQt under Wayland (with the labwc compositor). As an example, if LXQt (under X11) is configured to use IceWM, the output of fastfetch (running under labwc/Wayland) is:

WM: IceWM (Wayland).

It should be

WM: labwc 0.9.3 (Wayland).

If no window manager at all (under X11) was configured (i.e. on the system where LXQt has never been used yet on X11, or if the selection has been erased), fastfetch detects labwc correctly.

I debugged wmde.c, and the "pretty name" is detected corrected (as labwc), but later coerced to the X11 windowmanager name by the "apply better name"-function.

Version used

fastfetch 2.59.0 (x86_64)

Bug prevalence

Always

Regression

Not sure

Installation

Package manager

Package manager

pacman

Screenshots

No response

Configuration

System information

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
chafa
zlib
sqlite3
egl
glx
opencl
libpulse
libddcutil
libelf
libzfs
Directx Headers
System yyjson
linux/videodev2
linux/wireless