mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
wayland: Create drag surface directly
... instead of going through create_surface().
This commit is contained in:
parent
d99042dd91
commit
8c530264f7
@ -24,6 +24,7 @@
|
||||
#include "gdkdisplay-wayland.h"
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include "gdkseat-wayland.h"
|
||||
#include "gdksurface-wayland-private.h"
|
||||
|
||||
#include "gdkdeviceprivate.h"
|
||||
|
||||
@ -381,7 +382,9 @@ _gdk_wayland_surface_drag_begin (GdkSurface *surface,
|
||||
|
||||
drag = GDK_DRAG (drag_wayland);
|
||||
|
||||
drag_wayland->dnd_surface = gdk_wayland_display_create_surface (display, GDK_SURFACE_DRAG, NULL);
|
||||
drag_wayland->dnd_surface = g_object_new (GDK_TYPE_WAYLAND_DRAG_SURFACE,
|
||||
"display", display,
|
||||
NULL);
|
||||
|
||||
gdk_wayland_drag_create_data_source (drag);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user