diff options
| author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2014-02-11 19:17:17 +0100 |
|---|---|---|
| committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2014-02-12 16:07:15 +0100 |
| commit | 668a926bcceaad1deed83317cfb7c33e33a5ceda (patch) | |
| tree | 3ff297b5a7bb6f96cf96e3db7baafdc0eb40759f /shell | |
| parent | a94c970a8a3504970b745bc8132da28b13815cba (diff) | |
| download | graynard-668a926bcceaad1deed83317cfb7c33e33a5ceda.tar.gz graynard-668a926bcceaad1deed83317cfb7c33e33a5ceda.zip | |
shell: bind to version 3 of desktop_shell
The desktop_ready() request (added in version 2) must be called after
everything is drawn to the screen so weston knows when to fade up and
show the desktop.
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/gtk-shell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/gtk-shell.c b/shell/gtk-shell.c index 935178f..a899a1e 100644 --- a/shell/gtk-shell.c +++ b/shell/gtk-shell.c @@ -59,6 +59,8 @@ desktop_shell_configure(void *data, width, height - 28); gtk_window_resize (GTK_WINDOW (desktop->panel->window), width, 16); + + desktop_shell_desktop_ready(desktop->shell); } static void @@ -260,7 +262,7 @@ registry_handle_global(void *data, struct wl_registry *registry, if (!strcmp(interface, "desktop_shell")) { d->shell = wl_registry_bind(registry, name, - &desktop_shell_interface, 1); + &desktop_shell_interface, 3); desktop_shell_add_listener(d->shell, &listener, d); } else if (!strcmp(interface, "wl_output")) { |
