Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1.6k
    • Issues 1.6k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 267
    • Merge requests 267
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Issues
  • #6086

DropTargetAsync doesn't clear DROP_ACTIVE styling from widgets on drop finish

Steps to reproduce

  1. Use DropTargetAsync on a widget
  2. Accept a drop and finish it

Here is a patch for the Drag-and-Drop demo in gtk-demo that shows the issue. To reproduce, open the demo and drag one of the colours from the bottom onto one of the item rectangles. The drop will finish but the green outline will remain on the item until another drag is started.

drop_target_async.patch

Current behavior

The active drop styling remains on the final element without being cleared.

Expected outcome

The styling should clear itself when the drop is finished.

Version information

4.10.5 and git head

Additional information

While this patch doesn't actually read the contents of the GdkDrop, the real code does and it makes no difference.

Screenshot after trying a drop:

2023-09-05_19-54-25

Edited Sep 06, 2023 by Thomas Szymanski
Assignee
Assign to
Time tracking