wayland: Make sure to notify the capability settings when we get capabilities

Otherwise, we won't notice when we get capabilities, and we'll show app
menus, etc.
This commit is contained in:
Jasper St. Pierre 2014-07-01 15:16:12 -04:00
parent 6a1aec336a
commit cd591a03e7

View File

@ -618,9 +618,14 @@ gtk_shell_handle_capabilities (void *data,
struct gtk_shell *shell,
uint32_t capabilities)
{
GdkWaylandScreen *screen_wayland = data;
GdkScreen *screen = data;
GdkWaylandScreen *screen_wayland = GDK_WAYLAND_SCREEN (data);
screen_wayland->shell_capabilities = capabilities;
notify_setting (screen, "gtk-shell-shows-app-menu");
notify_setting (screen, "gtk-shell-shows-menubar");
notify_setting (screen, "gtk-shell-shows-desktop");
}
struct gtk_shell_listener gdk_screen_gtk_shell_listener = {