mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
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:
parent
83e104b093
commit
bb4fca2486
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user