From 9a7fb3a1539246c9e4d03eda7639d6d0943b5a89 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Mon, 18 Mar 2024 17:50:00 +0100 Subject: [PATCH] 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 Part-of: --- hw/xwayland/desktop/org.freedesktop.Xwayland.desktop.in | 2 +- hw/xwayland/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xwayland/desktop/org.freedesktop.Xwayland.desktop.in b/hw/xwayland/desktop/org.freedesktop.Xwayland.desktop.in index 6a9d9fc4b..106c8bc76 100644 --- a/hw/xwayland/desktop/org.freedesktop.Xwayland.desktop.in +++ b/hw/xwayland/desktop/org.freedesktop.Xwayland.desktop.in @@ -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 diff --git a/hw/xwayland/meson.build b/hw/xwayland/meson.build index 3bb7f88c0..ee05749d7 100644 --- a/hw/xwayland/meson.build +++ b/hw/xwayland/meson.build @@ -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',