Bug 450416

Summary: Dragging in documents will lock old documents so no actions can be performed until the application gets switched
Product: [Applications] krita Reporter: Martin Braun <mi51qw0l2nft>
Component: UsabilityAssignee: vanyossi <ghevan>
Status: ASSIGNED ---    
Severity: minor CC: ghevan, halla
Priority: NOR    
Version: 5.0.2   
Target Milestone: ---   
Platform: Homebrew (macOS)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Martin Braun 2022-02-16 22:53:32 UTC
SUMMARY
When dragging in two images and open both as documents, so that you have two tabs, only on the last added document the actions work until switching applications. Also occurs on DMG installation. More info: https://krita-artists.org/t/macos-i-have-to-unfocus-and-refocus-krita-to-make-the-old-tab-work-when-opening-a-new-document-via-drag-n-drop/36962/


STEPS TO REPRODUCE
1. Drag in first image (i.e. PNG)
2. Drag in second image and select New Document
3. Go back to the first image, use the select tool, no action can be performed

OBSERVED RESULT
Actions are only possible on the last added document until switching between applications.

EXPECTED RESULT
Actions should be possible on all documents right away.

SOFTWARE/OS VERSIONS
macOS: 12.1 (21C52)

ADDITIONAL INFORMATION
Issue doesn't happen when using the file dialog to open documents, so it has to be related to the drag-in routine.
Comment 1 vanyossi 2022-02-17 17:23:18 UTC
I can reproduce this bug, I'll look into this.

Besides what is described when switching applications and coming back, if Krita had one of the documents not receiving as an active document, when switching back to krita it switches automatically to the last document added (the only in which the actions work) probably indicating an event gets stuck/waiting until it is forced by the latest event, since krita goes back to normal after this.