AppButton: Fix drag to dock
Fixes #614
Don't close the menu until after drag operation is completed
For me the dock doesn't seem to accept DND and can't confirm if the issue is fixed :thinking:
https://github.com/user-attachments/assets/af8fb742-e083-478c-ae28-b717852cad30
@ryonakano I should mention I'm testing on Wayland. I didn't test for X11
Yes, I also tested on Wayland. It looks like this not always happens but keeping apps in the dock from the secondary menu does not seem to persistent when it happens and opening the secondary menu again disappear the app from the dock:
https://github.com/user-attachments/assets/748f1f5a-bcf6-43a7-a743-158d73ce1fde
But this disappear issue is reproducible in latest master too (81336c1b03b82a7de26f1ca431e326826fa0c1a6) thus I don't think it would be a regression from this branch.
For me the dock doesn't seem to accept DND and can't confirm if the issue is fixed 🤔
For me this happens about 80% on Wayland and 100% on X, so I can't confirm if this PR does fix the linked issue actually