xwayland: Use "-decorate" if available

That allows to open new Xwayland decorated windows as needed (e.g. using
the "New window" entry from the launcher)

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1421>
This commit is contained in:
Olivier Fourdan 2024-03-18 17:50:00 +01:00 committed by Marge Bot
parent fbf5e26b5c
commit 9a7fb3a153
2 changed files with 2 additions and 1 deletions

View File

@ -4,5 +4,5 @@ Comment=A rootful instance of the Xwayland X11 server
Terminal=false
Type=Application
Categories=System;
Exec=@XWAYLAND@ -displayfd 1
Exec=@XWAYLAND@ @DECORATE@ -displayfd 1
NoDisplay=true

View File

@ -197,6 +197,7 @@ install_man(xwayland_manpage)
desktop_data = configuration_data()
desktop_data.set('XWAYLAND', xwayland_server.full_path())
desktop_data.set('DECORATE', have_libdecor ? '-decorate' : '')
desktop_file = configure_file(
input: 'desktop/org.freedesktop.Xwayland.desktop.in',
output: 'org.freedesktop.Xwayland.desktop',