mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
wayland: Don't set the wl_surface user_data twice
wl_surface_add_listener already sets the user data pointer, so no need to do it separately before. https://bugzilla.gnome.org/show_bug.cgi?id=746141
This commit is contained in:
parent
7372ddd2a1
commit
225c10bc5a
@ -870,7 +870,6 @@ gdk_wayland_window_create_surface (GdkWindow *window)
|
||||
GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (gdk_window_get_display (window));
|
||||
|
||||
impl->surface = wl_compositor_create_surface (display_wayland->compositor);
|
||||
wl_surface_set_user_data (impl->surface, window);
|
||||
wl_surface_add_listener (impl->surface, &surface_listener, window);
|
||||
|
||||
gdk_wayland_window_sync_opaque_region (window);
|
||||
|
Loading…
Reference in New Issue
Block a user