Unable to drag and drop in the shell
Drag and drop doesn't work for widgets in the Phosh shell. But for other apps run directly via phoc -E some/app
, it works fine.
A minimal working example - https://gitlab.gnome.org/arun-mani-j/phosh/-/tree/dnd?ref_type=heads
- Setup and build Phosh as usual with tools set.
- Run
dnd
example with:phoc -E _build/tools/drag-drop
. - Try to drag from source to sink and see the console.
- It should be like:
phosh-drag-box-Message: 20:47:59.775: Drag begin
phosh-drag-box-Message: 20:48:00.322: Drag leave
phosh-drag-box-Message: 20:48:00.322: Data get
phosh-drag-box-Message: 20:48:00.322: Data received
phosh-drag-box-Message: 20:48:00.322: Got text: Hello
phosh-drag-box-Message: 20:48:00.322: Drag drop
phosh-drag-box-Message: 20:48:00.324: Drag end
But if you run Phosh, and try to do the same, you should see:
phosh-drag-box-Message: 20:48:15.899: Drag begin
Also you can see that while dragging in Phosh, the drag icon doesn't get unset once you release the drag.
Phoc is 0.36.0
(installed via Debian package manager)
Phosh is 0.38.0
.