RE: Drag and Drop is not working in GtkLauncher when running with Wayland back end



Hello,

On further debugging on the below issue, I found that gdk_drag_begin() is called when the drag event occurs. 
After that the code flow is something like:
 gdk_drag_begin() -> gdk_drag_begin_for_device()->_gdk_wayland_window_drag_begin() (This is for wayland backend).

Inside the function, _gdk_wayland_window_drag_begin(), which creates and returns the GdkDragContext, the source window and targets are not initialized, as a result the value of context->source_window is and context->targets are NULL. 
I checked the corresponding x11 function _gdk_x11_window_drag_begin() which is initializing these values as follows:

context->is_source = TRUE;
  context->source_window = window;
  g_object_ref (window);

  context->targets = g_list_copy (targets);
  precache_target_list (context);

  context->actions = 0;


What is the reason of this difference in the two similar functions? Is this causing the drag/drop not happening when I use wayland as a backend or is there some other reason for the same?

Regards,
Avijit
________________________________________
From: Avijit Manna (WT01 - PES)
Sent: Wednesday, June 13, 2012 8:22 PM
To: gtk-devel-list gnome org
Subject: Drag and Drop is not working in GtkLauncher when running with Wayland back end

Hello,

I have built webkit-1.8.0 with wayland (wayland 0.85) backend for my Ubuntu
11.10.

I tried testing the Drag and drop feature of HTML5 in GtkLauncher while running in Wayland back end. Unfortunately drag and drop feature is not working. I am getting below error:
(GtkLauncher:2302): Gdk-CRITICAL **: gdk_drag_get_selection: assertion `context->source_window != NULL' failed
Is there any path to solve this issue?

Regards,
Avijit


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]