File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1089,7 +1089,9 @@ - (void) applicationWillResignActive:(NSApplication *)app; {
1089
1089
- (void )hitMainHotKey : (SGHotKey *)hotKey
1090
1090
{
1091
1091
if ( ! isBezelDisplayed ) {
1092
- [NSApp activateIgnoringOtherApps: YES ];
1092
+ // Do NOT activate the app so focus stays on app the user is interacting with
1093
+ // https://github.com/TermiT/Flycut/issues/45
1094
+ // [NSApp activateIgnoringOtherApps:YES];
1093
1095
if ( [[NSUserDefaults standardUserDefaults ] boolForKey: @" stickyBezel" ] ) {
1094
1096
isBezelPinned = YES ;
1095
1097
}
Original file line number Diff line number Diff line change 15
15
#import " RoundRecTextField.h"
16
16
17
17
18
- @interface BezelWindow : NSWindow {
18
+ @interface BezelWindow : NSPanel {
19
19
// "n of n" text in bezel
20
20
NSString *charString; // Slightly misleading, as this can be longer than one character
21
21
NSString *title;
Original file line number Diff line number Diff line change @@ -20,13 +20,16 @@ - (id)initWithContentRect:(NSRect)contentRect
20
20
backing : (NSBackingStoreType )bufferingType
21
21
defer : (BOOL )flag
22
22
showSource : (BOOL )showSource {
23
-
23
+
24
24
self = [super initWithContentRect: contentRect
25
- styleMask: NSBorderlessWindowMask
25
+ styleMask: NSNonactivatingPanelMask | NSBorderlessWindowMask
26
26
backing: NSBackingStoreBuffered
27
27
defer: NO ];
28
28
if ( self )
29
29
{
30
+ // set this window to be on top of all other windows
31
+ [self setLevel: NSScreenSaverWindowLevel ];
32
+
30
33
[self setOpaque: NO ];
31
34
[self setAlphaValue: 1.0 ];
32
35
[self setOpaque: NO ];
You can’t perform that action at this time.
0 commit comments