summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-09-17 08:37:51 -0600
committerJasper St. Pierre <jstpierre@mecheye.net>2014-09-24 15:42:17 -0600
commit6565bca210b58cfe167ca3eaea744da35c332a24 (patch)
treee1705cfff9454a91ee7fa77834932d6a46b26156
parent60c22b62366d737f7f6eabe7d46fa682c6f400d7 (diff)
downloadmutter-6565bca210b58cfe167ca3eaea744da35c332a24.tar.gz
wayland: Send accurate capabilities
mutter now knows whether the app menu should be shown, so expose this properly under Wayland as well.
-rw-r--r--src/wayland/meta-wayland-surface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index c231b4184..6581f54de 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -1441,12 +1441,15 @@ bind_gtk_shell (struct wl_client *client,
guint32 id)
{
struct wl_resource *resource;
+ uint32_t capabilities = 0;
resource = wl_resource_create (client, &gtk_shell_interface, version, id);
wl_resource_set_implementation (resource, &meta_wayland_gtk_shell_interface, data, NULL);
- /* FIXME: ask the plugin */
- gtk_shell_send_capabilities (resource, GTK_SHELL_CAPABILITY_GLOBAL_APP_MENU);
+ if (!meta_prefs_get_show_fallback_app_menu ())
+ capabilities = GTK_SHELL_CAPABILITY_GLOBAL_APP_MENU;
+
+ gtk_shell_send_capabilities (resource, capabilities);
}
static void