wayland: Don't get the shell surface twice

Noticed by Pu Xingyu,
https://bugzilla.gnome.org/show_bug.cgi?id=697947
This commit is contained in:
Matthias Clasen 2013-04-13 17:20:05 -04:00
parent 83e104b093
commit bb4fca2486

View File

@ -714,7 +714,9 @@ gdk_wayland_window_show (GdkWindow *window, gboolean already_mapped)
wl_surface_set_user_data(impl->surface, window);
}
if (!impl->use_custom_surface && display_wayland->shell)
if (!impl->shell_surface &&
!impl->use_custom_surface &&
display_wayland->shell)
{
impl->shell_surface = wl_shell_get_shell_surface (display_wayland->shell,
impl->surface);