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:
parent
fbf5e26b5c
commit
9a7fb3a153
|
@ -4,5 +4,5 @@ Comment=A rootful instance of the Xwayland X11 server
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=System;
|
Categories=System;
|
||||||
Exec=@XWAYLAND@ -displayfd 1
|
Exec=@XWAYLAND@ @DECORATE@ -displayfd 1
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
|
|
|
@ -197,6 +197,7 @@ install_man(xwayland_manpage)
|
||||||
|
|
||||||
desktop_data = configuration_data()
|
desktop_data = configuration_data()
|
||||||
desktop_data.set('XWAYLAND', xwayland_server.full_path())
|
desktop_data.set('XWAYLAND', xwayland_server.full_path())
|
||||||
|
desktop_data.set('DECORATE', have_libdecor ? '-decorate' : '')
|
||||||
desktop_file = configure_file(
|
desktop_file = configure_file(
|
||||||
input: 'desktop/org.freedesktop.Xwayland.desktop.in',
|
input: 'desktop/org.freedesktop.Xwayland.desktop.in',
|
||||||
output: 'org.freedesktop.Xwayland.desktop',
|
output: 'org.freedesktop.Xwayland.desktop',
|
||||||
|
|
Loading…
Reference in New Issue