Display screenshot of target window in autotype confirmation/selection dialog.

This commit is contained in:
Michael Starke
2020-12-02 17:34:17 +01:00
parent 03c1d5ecee
commit b04c252a69
6 changed files with 55 additions and 17 deletions

View File

@@ -368,7 +368,7 @@ static MPAutotypeDaemon *_sharedInstance;
- (void)_presentCandiadates:(NSArray *)candidates forEnvironment:(MPAutotypeEnvironment *)environment {
if(!self.matchSelectionWindow) {
self.matchSelectionWindow = [[NSPanel alloc] initWithContentRect:NSMakeRect(0, 0, 100, 100)
styleMask:NSWindowStyleMaskNonactivatingPanel|NSWindowStyleMaskTitled
styleMask:NSWindowStyleMaskResizable|NSWindowStyleMaskNonactivatingPanel|NSWindowStyleMaskTitled
backing:NSBackingStoreBuffered
defer:YES];
self.matchSelectionWindow.level = kCGAssistiveTechHighWindowLevel;