mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
wayland: Send accurate capabilities
mutter now knows whether the app menu should be shown, so expose this properly under Wayland as well.
This commit is contained in:
parent
60c22b6236
commit
6565bca210
@ -1441,12 +1441,15 @@ bind_gtk_shell (struct wl_client *client,
|
|||||||
guint32 id)
|
guint32 id)
|
||||||
{
|
{
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
|
uint32_t capabilities = 0;
|
||||||
|
|
||||||
resource = wl_resource_create (client, >k_shell_interface, version, id);
|
resource = wl_resource_create (client, >k_shell_interface, version, id);
|
||||||
wl_resource_set_implementation (resource, &meta_wayland_gtk_shell_interface, data, NULL);
|
wl_resource_set_implementation (resource, &meta_wayland_gtk_shell_interface, data, NULL);
|
||||||
|
|
||||||
/* FIXME: ask the plugin */
|
if (!meta_prefs_get_show_fallback_app_menu ())
|
||||||
gtk_shell_send_capabilities (resource, GTK_SHELL_CAPABILITY_GLOBAL_APP_MENU);
|
capabilities = GTK_SHELL_CAPABILITY_GLOBAL_APP_MENU;
|
||||||
|
|
||||||
|
gtk_shell_send_capabilities (resource, capabilities);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user