Code Monkey home page Code Monkey logo

autofocus's Introduction

Logo

AutoFocus

A focus-follows-mouse implementation on steroids!

AutoFocus, formerly named AutoRaise, takes its inspiration from the discontinued Zooom/2 Auto Raise feature and extends it with a very powerful and flexible workflow in a modern modular Swift codebase.

Read more about its features...

This repository is a placeholder for its public beta issues and feature requests.

FAQ

Is this a pre-release?

Yes, AutoFocus is currently in public beta.

Is it free to download?

Yes, AutoFocus is free while it's in beta.

What's the purpose of the "Handle Desktop as a window" option?

While this is disabled by default, AutoFocus can handle the Desktop just as another window, meaning that when the cursor is over the Desktop, the most recent Finder window will be brought to the front. This doesn't seem like much but imagine digging through several applications windows to raise that Finder window back.

But wait, there's much more to it. It auto highlights and gives back focus to the item that was previously selected on the Desktop. It is very handy not to lose where you left off if you had selected something on the Desktop and it was buried under other windows. There is also a helpful shortcut for quickly minimizing all Finder windows that may stand in your way to the Desktop. You can just hold down Shift and move the cursor to minimize them all and vice versa.

It's hard to explain just with words, watch the introductory video at slow motion starting at 1:12 and I am sure you'll adopt it. Early private beta testers ended up using it daily. It's a real lifesaver when productivity is your primary concern to be able to snap-back to your Desktop selection!

System Requirements

Mac computer with an Apple silicon or Intel processor (macOS 11.0+)

Settings

Support

To submit issues or feature requests, please head to the Issues page. You might first need to (freely) sign up to a GitHub account if you do not already have one.

autofocus's People

Contributors

synappser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bikes4fun

autofocus's Issues

Chrome settings and bookmarks not clickable

With the setting "Focus without raising window" enabled, it's not possible in Chrome to get into the settings or any adjustment through the 3-dot menu on the top right. When clicking it, the dropdown menu appears, then when hovering over it disappears after the 0.05s timer runs out. Meaning, in order to get into settings, you have to click it within 0.05s. Same thing with the bookmarks if they're in a folder.

Maybe there is a way to disable AutoFocus within an application window?
Or even better, a shortcut to temporarily disable AutoFocus?

Mac mini:

  • OS: Ventura macOS 13.4.1
  • CPU: M2 pro
  • Version 0.6.7

Thanks,
David

Support focus follows mouse *without* raise

Is your feature request related to a problem? Please describe.
Many users on Linux (and Windows) prefer FFM without the focused window being raised.

Describe the solution you'd like
It would be great if AutoRaise supported this.

Describe alternatives you've considered
No other macOS tools that I'm aware of support FFM without raise, so this may be a limitation of the OS.

Additional context
n/a

App Preferences Not Accessible Upon First Run

After initial install and when you run the app for the first time, you cannot access the app preferences via the menu bar link nor via the keyboard shortcut. While that wouldn't be a huge deal, AutoRaise is not enabled by default upon initial installation so the app does not function at all. You must quit the app after enabling Accessibility access and then you can reach Preferences to turn on and configure the app

To Reproduce
Steps to reproduce the behavior:

  1. Unpack .dmg file
  2. Drag AutoRaise.app to /Applications (or whatever your destination folder is)
  3. Open AutoRaise.app
  4. Enable Accessibility access via System Preferences
  5. Click on menubar icon
  6. Click on Preferences link (or try using the keyboard shortcut ⌘ + ,)

Expected behavior
The preferences link (and keyboard shortcut) should be immediately clickable to enable and configure the settings.

Desktop (please complete the following information):

  • OS: macOS 12.5
  • CPU: M1 Max
  • Version v0.6.2b

Additional context
If it's not just a bug in general, I'd recommend creating a popup notifying the user that a restart of the app is required after enabling Accessibility access to be able to use it. You can then give them the choice to restart the app now or cancel to restart later. I've seen many apps go this route upon installation and first run.

Unable to use Emoji Picker

Describe the bug
When trying to use the emoji picker with the cursor/pointer, the picker will close as focus goes back to the main window.

To Reproduce
Steps to reproduce the behavior:

  1. Use TextEdit or anywhere you can input text in another app
  2. Bring up the emoji picker (globe key shortcut on most Mac)
  3. Try to pick an emoji using the pointer
  4. See error

Expected behavior
You should be able to pick an emoji with the pointer

Desktop:

  • OS: macOS Ventura 13.4

  • CPU: Apple M1 Pro

  • MacBook Pro 16-inch, 2021

  • AutoFocus 0.6.6 (1)

Microsoft Office applications (Word, Excel) are not reliably auto-raised.

Describe the bug
Microsoft Office applications (Word, Excel) are not reliably autoraised.

Autoraise seems to reliably raise iTerm2 windows and my various other apps.

Raising Word or Excel windows seems intermittent. Sometimes it works, sometimes it does not.

Autoraise 0.6.2b
M1 Max Mac Studio, OSX 12.4.

I have another box running OSX 12.5 which has the same behaviour.

To Reproduce
Steps to reproduce the behavior:

  1. Open Excel
  2. Open some other apps
  3. Move the mouse over the different apps
  4. See other apps reliably raised and given input focus, but Excel only intermittently

Expected behavior
Microsoft Office applications should auto-raise

Desktop (please complete the following information):

  • OS: Tried 12.4 and 12.5
  • CPU: M1 Max, M2
  • Version v0.6.2b

Additional context
Add any other context about the problem here.

Not Working

Hello, I can't get the program to work. Is there a setup guide? Thanks, Ray

Suggested Workaround for AutoFocus Interfering with Overlay Add-Ins like Default Folder X

Hello. I'm really enjoying AutoFocus beta. Only one issue so far: Default Folder X is an add-in that creates a sidebar-like overlay for Open/Save dialogs to let you easily select recent folders or files. The problem is, with AutoFocus activated, the Default Folder X overlay disappears as soon as you move the cursor over it, so only the original Open/Close dialog remains visible. AutoFocus has to be disabled to allow Default Folder X to function properly.

Describe the solution you'd like
If there's no easy way to prevent AutoFocus from interfering with overlays like this, an acceptable workaround might be to add an option in AutoFocus Preferences that does the opposite of Auto raise window under cursor: "Only allow when one of the following keys is pressed." It could be called: "Disable AutoFocus while one of the following keys is pressed." So, for example, if someone selected this new option, they could hold down the Option key while interacting with the Default Folder X overlay to prevent it from disappearing.

Describe alternatives you've considered
The only other alternative I can think of is if you can figure out a way to prevent AutoFocus from interfering with these kinds of overlays. In my opinion, it would be too annoying to use AutoFocus with "Only allow when one of the following keys is pressed." enabled all the time. That would make me not want to use AutoFocus at all.

Additional context

  • AutoFocus version 0.6.6 (1)
  • macOS 13.2.1
  • M2 Pro Mac mini

Two screenshots: (1) Standard Open/Save dialog and (2) Default Folder X overlay that normally appears around it:
Screenshot AutoFocus Default Folder X issue 2023-03-02 at 12 37 45 PM
Screenshot AutoFocus Default Folder X issue  2023-03-02 at 12 32 31 PM

Focus without raising window causes app to crash

Describe the bug
Focus without raising window checkbox causes app to crash when it is set.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Ensure 'Auto raise window under cursor' is on
  3. Check 'Focus without raising window'
  4. App will crash
  5. Further attempts to restart the app will cause the app to crash

Expected behavior
App should not crash

Desktop (please complete the following information):

  • OS: Sonoma 14.3
  • CPU: M3 Pro
  • Version v0.6.8b

Additional context
The help text says the feature will work when there is a 'required framework'. What is that required framework?

App has no effect

Describe the bug
AutoRaise has no effect.

To Reproduce
No special steps. The app just has no effect on my system.
NB: the app is enabled in the Accessibility settings.

Desktop:

  • OS: macOS 12.4
  • CPU: M1
  • Version v0.6.2b

AutoRaise

Thank you for this brilliant idea - I'd ℓσνє to test this out, unfortunately on your website there is no "installer" or .dmg for AutoRaise, and the command line method mentioned here on GitHub for it gives me repeated error codes. Could you help out? THANK YOU!

Autoraise does not function if a system notification is present

Describe the bug
Autoraise does not function if a system notification is present

To Reproduce
Steps to reproduce the behavior:

  1. Open some application windows
  2. Generate a standard OSX system notification (for example, by sending yourself an email using your iphone while you have mail.app open)
  3. Attempt to autoraise some windows by mouseing-over them while the notificaiton is present
  4. See that windows do not raise
  5. Retry once notification has gone and see that windows do raise

Expected behavior
Windows should auto-raise even if a notification is present.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: 12.5
  • CPU: M1 Max, M2
  • Version: v0.6.2b

Naming of AutoRaise

Hi there. While I can't prevent people from making similar tools like the original AutoRaise, it would have been nice if at least the name was chosen differently. The tool I wrote has been around for over 5 years and is referenced from stackoverflow as well, so it is kind of hard to miss it.

Quits after first raise event immediately after opening app; May be related to specific configuration

Describe the bug
AUTOFOCUS quits after the first raise event immediately after opening the app. This may be related to a specific settings configuration. This started happening after I upgraded to the latest beta after I received a message saying my current version was out-of-date.

After I upgraded, I wanted to see if any of the functionality had changed: I selected "Invert action" and "Focus without raising window." When I attempted to hover over an unfocused window, the app quit.

I am using the word "quit" to describe what happened, but maybe this could be considered a "crash."

To Reproduce
Steps to reproduce the behavior:

  1. Open AUTOFOCUS Settings.
  2. Select settings: "Invert action" and "Focus without raising window."
  3. THIS IS THE UNEXPECTED BEHAVIOR: Move the pointer over an unfocused window; AUTOFOCUS should quit.
  4. Once AUTOFOCUS has quit, relaunch AUTOFOCUS.
  5. OPTIONAL: Open AUTOFOCUS Settings and confirm that the same configuration is set.
  6. THIS IS THE UNEXPECTED BEHAVIOR AGAIN: Move the pointer over an unfocused window; AUTOFOCUS should quit.

Expected behavior
I expected AUTOFOCUS to focus to the unfocused window and not quit.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.2.1
  • CPU: Apple M2 Pro
  • Version 0.6.8 (30)

Additional context
Three monitors. Using Stage Manager.

Thank you.

Crash if i try to activate to Raise when holding Command key. Cant reset setting by un-installing.

Describe the bug
Was working when i only activated the Raise Window on hover option.
Started crashing when i tryed to activate to only Raise when Command was push.

To Reproduce
I have'nt been able to reproduce it. Because once its started crashing, it started crashing immediatly after deleting the .app and re-installing.

The config are well hidden, but continue to crash after removing those too and re-installing also:
rm -rf /System/Volumes/Data/private/var/folders/r0/p69s7ljs4fgb2c_tzhrv2syh0000gn/C/com.mantel.AutoFocus
rm /System/Volumes/Data/Users/my-user/Library/Preferences/com.mantel.AutoFocus.plist

Expected behavior
Not to crash as it start and mouse hover a windows.


Translated Report (Full Report Below)

Process: AutoFocus [58335]
Path: /Applications/AutoFocus.app/Contents/MacOS/AutoFocus
Identifier: com.mantel.AutoFocus
Version: 0.6.7 (10)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-10-21 15:07:45.4447 -0400
OS Version: macOS 14.0 (23A344)
Report Version: 12
Anonymous UUID: 78A3F8F5-5806-194E-75D8-377A28C9EB72

Time Awake Since Boot: 100000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000001
Exception Codes: 0x0000000000000001, 0x0000000000000001

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [58335]

VM Region Info: 0x1 is not in any region. Bytes before following region: 4298342399
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 100338000-100370000 [ 224K] r-x/r-x SM=COW ...cOS/AutoFocus

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x1815a5408 objc_msgSend + 8
1 Foundation 0x182b3a70c _encodeObject + 180
2 Foundation 0x182b3a088 +[NSKeyedArchiver archivedDataWithRootObject:requiringSecureCoding:error:] + 92
3 SkyLight 0x18719f5e0 _SLEventRecordCreateData(SLSEventRecord const*, SLEventCreateDataOptions, unsigned int) + 1112
4 SkyLight 0x1871a0748 CGSEncodeEventRecord + 76
5 SkyLight 0x1873ae7dc SLPSPostEventRecordTo + 104
6 AutoFocus 0x10033a41c focus_window_without_raise + 252
7 AutoFocus 0x100340184 ViewController.raiseWindow(desktop:) + 2156
8 AutoFocus 0x10033f908 @objc ViewController.fire() + 28
9 Foundation 0x182b878e8 __NSFireTimer + 104
10 CoreFoundation 0x181a63d94 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32
11 CoreFoundation 0x181a63a3c __CFRunLoopDoTimer + 972
12 CoreFoundation 0x181a63574 __CFRunLoopDoTimers + 356
13 CoreFoundation 0x181a46a20 __CFRunLoopRun + 1856
14 CoreFoundation 0x181a45c2c CFRunLoopRunSpecific + 608
15 HIToolbox 0x18bf9e448 RunCurrentEventLoopInMode + 292
16 HIToolbox 0x18bf9e284 ReceiveNextEventCommon + 648
17 HIToolbox 0x18bf9dfdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
18 AppKit 0x185220f90 _DPSNextEvent + 660
19 AppKit 0x1859f4b94 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
20 AppKit 0x18521443c -[NSApplication run] + 476
21 AppKit 0x1851eb708 NSApplicationMain + 880
22 AutoFocus 0x10033a778 main + 12
23 dyld 0x1815f1058 start + 2224

Thread 1:
0 libsystem_pthread.dylib 0x181965e28 start_wqthread + 0

Thread 2:
0 libsystem_pthread.dylib 0x181965e28 start_wqthread + 0

Thread 3:
0 libsystem_pthread.dylib 0x181965e28 start_wqthread + 0

Thread 4:
0 libsystem_pthread.dylib 0x181965e28 start_wqthread + 0

Thread 5:
0 libsystem_pthread.dylib 0x181965e28 start_wqthread + 0

Thread 6:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x18192a8b4 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x18193cd30 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x1819334f0 mach_msg_overwrite + 476
3 libsystem_kernel.dylib 0x18192ac38 mach_msg + 24
4 CoreFoundation 0x181a47ed0 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x181a46798 __CFRunLoopRun + 1208
6 CoreFoundation 0x181a45c2c CFRunLoopRunSpecific + 608
7 AppKit 0x18534a8e0 _NSEventThread + 144
8 libsystem_pthread.dylib 0x18196b034 _pthread_start + 136
9 libsystem_pthread.dylib 0x181965e3c thread_start + 8

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000001 x1: 0x00000001d17701c7 x2: 0x00006000012fcbd0 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000280 x6: 0x00006000022e0280 x7: 0x0000000000000000
x8: 0x0000000000000038 x9: 0x0000000181c76db4 x10: 0x00000000000007c8 x11: 0x0000000000000008
x12: 0x0000600001cf8a80 x13: 0x0000000000000000 x14: 0x0000000000000000 x15: 0xffffffffffffffff
x16: 0x00000001815a5400 x17: 0x00000001da381af0 x18: 0x0000000000000000 x19: 0x00006000012fcbd0
x20: 0x0000000000000001 x21: 0x00000001d8c54210 x22: 0x0000000000000001 x23: 0x00000001da355270
x24: 0x000000000000000d x25: 0x0000000000000000 x26: 0x00000001dcd476e0 x27: 0x000000000000e3b1
x28: 0x00000000000000f0 fp: 0x000000016fac5d70 lr: 0x0000000182b3a70c
sp: 0x000000016fac5c30 pc: 0x00000001815a5408 cpsr: 0x20001000
far: 0x0000000000000001 esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
0x11de34000 - 0x11de37fff com.apple.AppKit.axbundle (1.0) <4b5f2f01-b699-39f7-9f5a-2ca814cf37cc> /System/Library/Accessibility/BundlesBase/com.apple.AppKit.axbundle/Versions/A/com.apple.AppKit
0x1055d8000 - 0x1055dbfff com.apple.icloud.drive.fileprovider.override (1.0) /System/Library/Frameworks/FileProvider.framework/OverrideBundles/iCloudDriveFileProviderOverride.bundle/Contents/MacOS/iCloudDriveFileProviderOverride
0x107f80000 - 0x107f9ffff com.apple.findersync.fileprovideroverride.FinderSyncCollaborationFileProviderOverride (14.0) <8aa4e01d-9ec9-3ceb-858f-c539f92d947e> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride
0x1051e0000 - 0x1051e7fff com.apple.FileProviderOverride (1681.1.8) /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FileProviderOverride.bundle/Contents/MacOS/FileProviderOverride
0x104974000 - 0x104993fff com.apple.security.csparser (3.0) /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
0x100604000 - 0x10060ffff libobjc-trampolines.dylib () <562f95b3-8118-3d61-a13f-34e819dd863d> /usr/lib/libobjc-trampolines.dylib
0x100338000 - 0x10036ffff com.mantel.AutoFocus (0.6.7) <242d8b72-7485-3577-bb00-d126929cffc7> /Applications/AutoFocus.app/Contents/MacOS/AutoFocus
0x18159c000 - 0x1815eaf08 libobjc.A.dylib (
) <1c0364b5-d7e3-3170-baa6-9c28f400e7cc> /usr/lib/libobjc.A.dylib
0x182af3000 - 0x183745fff com.apple.Foundation (6.9) <11eb37ae-355b-3a35-af1b-13b599244410> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x187067000 - 0x1874f6fff com.apple.SkyLight (1.600.0) <42fd2e33-2bb2-372f-a01f-b2b36c8277b9> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
0x1819ca000 - 0x181ea0fff com.apple.CoreFoundation (6.9) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x18bf6e000 - 0x18c22dfff com.apple.HIToolbox (2.1.1) <38ee0ac5-f6f6-391c-852e-6954b5d253e8> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x1851e7000 - 0x1864f7fff com.apple.AppKit (6.9) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x1815eb000 - 0x18167e873 dyld () /usr/lib/dyld
0x0 - 0xffffffffffffffff ??? (
) <00000000-0000-0000-0000-000000000000> ???
0x181964000 - 0x181970ff3 libsystem_pthread.dylib () /usr/lib/system/libsystem_pthread.dylib
0x181929000 - 0x181963fef libsystem_kernel.dylib (
) /usr/lib/system/libsystem_kernel.dylib

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)
Writable regions: Total=1.9G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.9G(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 128K 1
Activity Tracing 256K 1
CG image 64K 4
ColorSync 560K 26
CoreAnimation 688K 43
CoreGraphics 48K 3
CoreUI image data 1424K 20
Foundation 16K 1
Kernel Alloc Once 32K 1
MALLOC 1.9G 60
MALLOC guard page 192K 12
STACK GUARD 56.1M 7
Stack 11.2M 7
VM_ALLOCATE 112K 7
__AUTH 1555K 301
__AUTH_CONST 21.5M 487
__CTF 824 1
__DATA 5376K 478
__DATA_CONST 23.9M 496
__DATA_DIRTY 1348K 163
__FONT_DATA 2352 1
__INFO_FILTER 8 1
__LINKEDIT 887.1M 8
__OBJC_RO 70.6M 1
__OBJC_RW 2153K 1
__TEXT 439.0M 512
dyld private memory 272K 2
mapped file 177.9M 29
shared memory 864K 14
=========== ======= =======
TOTAL 3.5G 2688

Crashes immediately when windows are activated to autofocus on Apple M1

The application crashes immediately upon launch on any Apple Silicon machine with the following segfault. It never starts, launches nor presents with a settings dialog box. This is also the case after a clean reboot.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               AutoFocus [6007]
Path:                  /Applications/AutoFocus.app/Contents/MacOS/AutoFocus
Identifier:            com.mantel.AutoFocus
Version:               0.6.7 (10)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-09-17 17:28:13.8432 -0400
OS Version:            macOS 14.0 (23A339)
Report Version:        12
Anonymous UUID:        62D447BF-5323-B480-5B08-5552512BB323


Time Awake Since Boot: 400 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x41525295b96f0068 -> 0x00005295b96f0068 (possible pointer authentication failure)
Exception Codes:       0x0000000000000001, 0x41525295b96f0068

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [6007]

VM Region Info: 0x5295b96f0068 is not in any region.  Bytes after previous region: 90321978327145  Bytes before following region: 14750101602200
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      commpage (reserved)        1000000000-7000000000   [384.0G] ---/--- SM=NUL  ...(unallocated)
--->  GAP OF 0x5f9000000000 BYTES
      MALLOC_NANO              600000000000-600020000000 [512.0M] rw-/rwx SM=PRV  

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               	       0x1868e1408 objc_msgSend + 8
1   Foundation                    	       0x187e7670c _encodeObject + 180
2   Foundation                    	       0x187e76088 +[NSKeyedArchiver archivedDataWithRootObject:requiringSecureCoding:error:] + 92
3   SkyLight                      	       0x18c4db5e0 _SLEventRecordCreateData(SLSEventRecord const*, SLEventCreateDataOptions, unsigned int) + 1112
4   SkyLight                      	       0x18c4dc748 CGSEncodeEventRecord + 76
5   SkyLight                      	       0x18c6ea7dc SLPSPostEventRecordTo + 104
6   AutoFocus                     	       0x102ba63cc focus_window_without_raise + 172
7   AutoFocus                     	       0x102bac184 ViewController.raiseWindow(desktop:) + 2156
8   AutoFocus                     	       0x102bab908 @objc ViewController.fire() + 28
9   Foundation                    	       0x187ec38e8 __NSFireTimer + 104
10  CoreFoundation                	       0x186d9fd94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
11  CoreFoundation                	       0x186d9fa3c __CFRunLoopDoTimer + 972
12  CoreFoundation                	       0x186d9f574 __CFRunLoopDoTimers + 356
13  CoreFoundation                	       0x186d82a20 __CFRunLoopRun + 1856
14  CoreFoundation                	       0x186d81c2c CFRunLoopRunSpecific + 608
15  HIToolbox                     	       0x1912da448 RunCurrentEventLoopInMode + 292
16  HIToolbox                     	       0x1912da284 ReceiveNextEventCommon + 648
17  HIToolbox                     	       0x1912d9fdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
18  AppKit                        	       0x18a55d0ec _DPSNextEvent + 660
19  AppKit                        	       0x18ad30c2c -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
20  AppKit                        	       0x18a550598 -[NSApplication run] + 476
21  AppKit                        	       0x18a527864 NSApplicationMain + 880
22  AutoFocus                     	       0x102ba6778 main + 12
23  dyld                          	       0x18692d058 start + 2224

Thread 1:
0   libsystem_pthread.dylib       	       0x186ca1e28 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	       0x186ca1e28 start_wqthread + 0

Thread 3:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x186c668b4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x186c78d30 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x186c6f4f0 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x186c66c38 mach_msg + 24
4   CoreFoundation                	       0x186d83ed0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x186d82798 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x186d81c2c CFRunLoopRunSpecific + 608
7   AppKit                        	       0x18a686a3c _NSEventThread + 144
8   libsystem_pthread.dylib       	       0x186ca7034 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x186ca1e3c thread_start + 8

Thread 4:
0   libsystem_pthread.dylib       	       0x186ca1e28 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x41525295b96f0068   x1: 0x00000001d6aa81c7   x2: 0x0000600000319710   x3: 0x0000000000000000
    x4: 0x0000000000000001   x5: 0x0000000000000220   x6: 0x0000600003320220   x7: 0x00000000000005dc
    x8: 0x0000000000000038   x9: 0x0000000186fb2db4  x10: 0x00000000000007c8  x11: 0x0000000000000002
   x12: 0x0000600002424060  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0xffffffffffffffff
   x16: 0x00000001868e1400  x17: 0x00000001df6b9af0  x18: 0x0000000000000000  x19: 0x0000600000319710
   x20: 0x41525295b96f0068  x21: 0x00000001ddf8c210  x22: 0x41525295b96f0068  x23: 0x00000001df68d270
   x24: 0x000000000000000d  x25: 0x0000000000000000  x26: 0x00000001e207f6e0  x27: 0x0000000000001793
   x28: 0x00000000000000f0   fp: 0x000000016d259cc0   lr: 0x0000000187e7670c
    sp: 0x000000016d259b80   pc: 0x00000001868e1408 cpsr: 0x20001000
   far: 0x41525295b96f0068  esr: 0x92000004 (Data Abort) byte read Translation fault

Binary Images:
       0x1179d0000 -        0x1179d3fff com.apple.icloud.drive.fileprovider.override (1.0) <ad460d2d-ee5e-3573-b7fc-41cdd752a1d8> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/iCloudDriveFileProviderOverride.bundle/Contents/MacOS/iCloudDriveFileProviderOverride
       0x117a90000 -        0x117aaffff com.apple.findersync.fileprovideroverride.FinderSyncCollaborationFileProviderOverride (14.0) <8aa4e01d-9ec9-3ceb-858f-c539f92d947e> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride
       0x117994000 -        0x11799bfff com.apple.FileProviderOverride (1681.1.7) <3208718c-7835-3dc3-afe7-bb3fe8c55f4f> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FileProviderOverride.bundle/Contents/MacOS/FileProviderOverride
       0x1179b0000 -        0x1179b3fff com.apple.AppKit.axbundle (1.0) <4b5f2f01-b699-39f7-9f5a-2ca814cf37cc> /System/Library/Accessibility/BundlesBase/com.apple.AppKit.axbundle/Versions/A/com.apple.AppKit
       0x107c00000 -        0x107c1ffff com.apple.security.csparser (3.0) <ada5ddea-96d7-3640-9609-e1e3fefe4dba> /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
       0x107784000 -        0x10778ffff libobjc-trampolines.dylib (*) <562f95b3-8118-3d61-a13f-34e819dd863d> /usr/lib/libobjc-trampolines.dylib
       0x102ba4000 -        0x102bdbfff com.mantel.AutoFocus (0.6.7) <242d8b72-7485-3577-bb00-d126929cffc7> /Applications/AutoFocus.app/Contents/MacOS/AutoFocus
       0x1868d8000 -        0x186926f08 libobjc.A.dylib (*) <1c0364b5-d7e3-3170-baa6-9c28f400e7cc> /usr/lib/libobjc.A.dylib
       0x187e2f000 -        0x188a81fff com.apple.Foundation (6.9) <11eb37ae-355b-3a35-af1b-13b599244410> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x18c3a3000 -        0x18c832fff com.apple.SkyLight (1.600.0) <42fd2e33-2bb2-372f-a01f-b2b36c8277b9> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
       0x186d06000 -        0x1871dcfff com.apple.CoreFoundation (6.9) <a68b8c77-1dbd-35b0-83fe-42ad58dd6629> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1912aa000 -        0x191569fff com.apple.HIToolbox (2.1.1) <38ee0ac5-f6f6-391c-852e-6954b5d253e8> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x18a523000 -        0x18b833fff com.apple.AppKit (6.9) <6cb2526d-d63b-3c9f-93a6-27887031c8b2> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x186927000 -        0x1869ba873 dyld (*) <ee3f4181-cec5-38c2-b8a8-4d310be33491> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x186ca0000 -        0x186cacff3 libsystem_pthread.dylib (*) <e4debb6e-421d-33d0-9e17-77ae0e0fe4dc> /usr/lib/system/libsystem_pthread.dylib
       0x186c65000 -        0x186c9ffef libsystem_kernel.dylib (*) <57eb8ba7-205a-342c-a330-940db07cbcfd> /usr/lib/system/libsystem_kernel.dylib

Does not work if using multiple monitors

Bug Description

  • Let's assume we have brave windows on two different monitor, it will raise the previously infocus window not the window under the cursor

To Reproduce
Steps to reproduce the behavior:

  1. Open Browser tabs in different windows
  2. Put them in different monitor
  3. The windows under mouse won't be in focus

Expected behavior
Whichever window is under mouse cursor should be in focus

Desktop (Mac Mini m1):

  • OS: Latest Monetery
  • CPU: M!
  • Latest beta

Older project

Autoraise does not reliably raise Microsoft Office programmes

Autoraise seems to reliably raise iTerm2 windows and my various other apps.

Raising Word or Excel windows seems intermittent. Sometimes it works, sometimes it does not.

Autoraise 0.6.2b
M1 Max Mac Studio, OSX 12.4.

I have another box running OSX 12.5 which has the same behaviour.

Auto Raise for newly open apps

If an application is maximized when you open a new app the new one is automatically pushed in background if you don't "catch it" fast enough

How to turn on autofocus

Can you tell me how to turn this on? I installed it (and granted access), but nothing is different. Thanks.

Help me find a new name for AutoRaise

Please take part in the poll I started on Reddit macOS to choose a new name for AutoRaise!

Here's the context:

Stefan Post kindly asked me yesterday to rename AutoRaise to avoid a name clash with his Autoraise.

This auto raise paradigm seems to be a very crowded space as I'm also learning about yet other dedicated software like Amethyst and Yabai.

Stefan's AutoRaise was first brought to my attention a couple of weeks ago through a Reddit comment to my FinderFix announcement. As stated in my introduction, I took the name and inspiration of mine from the discontinued Zooom/2 Auto Raise feature of which I owned a copy. This feature had grown on me, so when the software publisher closed its Web site I decided to write my own clean-room implementation in a modern Swift codebase, extending it with a powerful new workflow dubbed "Extending the Desktop" by one of its first private beta testers.

As with most of my software it started as a small utility that I used for my own needs, often for years, before even considering opening them to other users. I have a dozen more of these applications still waiting to be revealed to a larger public. For more context about my credo, please refer to this discussion I started on HN a few weeks ago.

My current implementation, in its first public release, is a precision work for minute control over window focus, not a holdall bag of features. I'm aware that it still lacks the ability to focus without raising but that's already on my radar (see #6 and #3).

Being in early public beta, I'm perfectly willing to rename it as it still can be done without much inconvenience. I however do not want this renaming to come as a surprise to the many enthusiastic users who downloaded the first public beta release and would like to involve them in finding a new name respecting its vocation. I'd be grateful if you could take a minute to answer this poll and/or write a comment adding the name you find would be more adequate.

This thread and poll will also give other developers the opportunity to claim that name before I get to adopt it.

Thank you very much for your time and loyalty.

Synappser

Bug with Stage manager minimized windows (Ventura)

This bug only concern Ventura with stage manager activated.

Describe the bug
With delay in preferences set to about 0.5 or less after swapping the current windows with a minimized stage manager application, AutoFocus will reswap the two windows sometimes more than once if the cursor moves and stays in the recent stage manager recent app area.

To Reproduce

  1. Activate stage manager with recent app option activate in System Preference > desktop and dock.
  2. Move two or more windows in the space in different stage manager group.
  3. Set AutoFocus "Bring window under cursor to front after:" to 0.5 or lower (the lower the value the more the issue will occur)
  4. Try swapping current windows with stage manager minimized windows and move your cursor while remaining in the recent app area of stage manager.

Expected behavior
AutoFocus doesn't raise stage manager minimized window or it is deactivatable.

Video (It also happens in real condition)
https://user-images.githubusercontent.com/111543876/210131093-dc85d4d3-b4be-4755-aeeb-1013cdc9d026.mp4

Desktop

  • OS: macOS 13.1
  • CPU: Intel
  • Version: v0.6.6b

Additional context
By increasing the delay the problem occurs less often but the autofocus becomes too slow for me.

This problem appears with the other autofocus tools I tested before: Amethyst, AutoRaise (no matter what the compilation arguments are used).
but it is more manageable with AutoFocus because you can increase the delay more precisely and reduces the occurrence of this issue without set very high delay but it still affects the reactivity and the issue still occur just less often.

Please support application blacklist

In Using with Openin.app, AutoFocus sends Openin's choosing menu window back. So i can't choose a app in Openin's window.
Please support application black list.

Allow FFM without Autoraise

Is your feature request related to a problem? Please describe.
The main reason I use an Autoraise program is for focus to follow mouse, without windows being raised. I have a homebrew app that has this functionality - but it behaves very poorly with Control Centre. So when I saw your app I decided to give it a shot.
It works perfectly but is sorely missing the option to auto focus without raising.

Describe the solution you'd like
An option to just autofocus, without raise

brings all windows in app to front even when turned off

Describe the bug
I have "bring all windows in application to front" unchecked, but after some undetermined amount of time it starts to bring all windows to front anyway. The setting is still unchecked, but the behavior is happening. I think it happens after a period of inactivity like if I walk away from my computer for 20 minutes. If I restart AutoFocus that fixes it.

Desktop (please complete the following information):

  • OS: macOS 14.4.1
  • CPU: M1
  • Version: 0.6.8 (30) latest
  • Laptop monitor and second monitor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.