Unity launcher appearing interrupts GTK drag and drop operation (that's nowhere near the launcher)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Triaged
|
Medium
|
Unassigned | ||
unity (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I am a developer for an app that uses Gtk's "drag-motion" and "drag-leave" signals. It is important that "drag-leave" not be fired until the mouse actually leaves the widget. However, when running unit, "drag-leave" will be fired ~1 second after a drag begins.
Here is a test project (in Vala) that reproduces the issue. Select a file on your desktop, and drag it to the window that this test project creates. You must drag it to the window within ~1 second to reproduce the bug. You should see "in on_drag_leave" appear in stderr, despite the mouse remaining within the Window.
void main(string[] args) {
Gtk.init(ref args);
new MainWindow();
Gtk.main();
}
public class MainWindow : Gtk.Window {
private const string URI_LIST_MIME_TYPE = "text/uri-list";
public MainWindow() {
title = "Main Window";
Gtk.Widget destination = new Gtk.Label("Drag a file here");
const Gtk.TargetEntry[] target_entries = { { URI_LIST_MIME_TYPE, 0, 0 } };
show_all();
}
private void on_drag_
bool dnd_success = false;
if (selection_
string string_data = (string)
}
}
private bool on_drag_
if (context.
return false;
uint length = context.
Gdk.Atom? target_type = null;
for (uint i = 0; i < length; i++) {
if (target.name() == URI_LIST_MIME_TYPE)
}
if (target_type == null)
return false;
return true;
}
private void on_drag_leave() {
}
}
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity 5.12-0ubuntu1.1
ProcVersionSign
Uname: Linux 3.2.0-25-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
CompizPlugins: [core,composite
Date: Tue Jun 26 18:06:07 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in unity: | |
status: | New → Triaged |
Can you describe how this bug relates to the Unity launcher (as mentioned in the title)?