[mutter/wip/wayland-fixes: 1/2] wayland: Send accurate capabilities
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/wayland-fixes: 1/2] wayland: Send accurate capabilities
- Date: Wed, 17 Sep 2014 15:37:58 +0000 (UTC)
commit a89dc89a0be9a15d46260dd517f7acb1f87a0ff5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 17 08:37:51 2014 -0600
wayland: Send accurate capabilities
src/wayland/meta-wayland-surface.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index c231b41..6581f54 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, >k_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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]