[gtk+] wayland: Make sure to notify the capability settings when we get capabilities
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Make sure to notify the capability settings when we get capabilities
- Date: Tue, 1 Jul 2014 19:39:22 +0000 (UTC)
commit cd591a03e7195846cd4788b4a8800e0ae14cc64a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jul 1 15:16:12 2014 -0400
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.
gdk/wayland/gdkscreen-wayland.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c
index 16b54b8..4cbc51e 100644
--- a/gdk/wayland/gdkscreen-wayland.c
+++ b/gdk/wayland/gdkscreen-wayland.c
@@ -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 = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]