sbmpost / AutoRaise

AutoRaise (and focus) a window when hovering over it with the mouse
GNU General Public License v3.0
1.48k stars 60 forks source link

not work properly on macOS14 #147

Closed Jianfengliu0413 closed 1 year ago

Jianfengliu0413 commented 1 year ago

it does not work properly on macOS14. recently I update my mac to macOS. AutoRaise not work. then I re-intall it with command. and got the info below:

AutoRaise-master make clean && CXXFLAGS="-DOLD_ACTIVATION_METHOD -DEXPERIMENTAL_FOCUS_FIRST" && make install rm -f AutoRaise rm -rf AutoRaise.app g++ -O2 -Wall -fobjc-arc -D"NS_FORMAT_ARGUMENT(A)=" -D"SKYLIGHT_AVAILABLE=1" -o AutoRaise AutoRaise.mm -framework AppKit -F /System/Library/PrivateFrameworks -framework SkyLight AutoRaise.mm:196:30: warning: 'NSApplicationActivateIgnoringOtherApps' is deprecated: first deprecated in macOS 14.0 - ignoringOtherApps is deprecated in macOS 14 and will have no effect. [-Wdeprecated-declarations] activateWithOptions: NSApplicationActivateIgnoringOtherApps]; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSRunningApplication.h:27:5: note: 'NSApplicationActivateIgnoringOtherApps' has been explicitly marked deprecated here NSApplicationActivateIgnoringOtherApps API_DEPRECATED("ignoringOtherApps is deprecated in macOS 14 and will have no effect.", macos(10.6, 14.0)) = 1 << 1 ^ 1 warning generated. ./create-app-bundle.sh Successfully created AutoRaise.app rm -rf /Applications/AutoRaise.app cp -r AutoRaise.app /Applications/

Jianfengliu0413 commented 1 year ago

currently cannot config "focusDelay"; My purpose is: only focus window but not raise. Could some expert could help me?

when I config like this:

AutoRaise config file

pollMillis=50 delay=4 focusDelay=0 warpX=0.5 warpY=0.1 scale=1.0 altTaskSwitcher=false ignoreSpaceChanged=false ignoreApps="Finder,App2" stayFocusedBundleIds="Id1,Id2" disableKey="control" mouseDelta=0.1 verbose=false

but in the Terminal has no information about 'focusDelay' Started with:

With this setting, it only can raise window, but this not what I want.

sbmpost commented 1 year ago

@andyandhope

It would seem Apple is about to break stuff once more which isn't good πŸ˜’. You are probably one of the first to discover incompatibilities with the upcoming sonoma release. Maybe we can see together if they can be overcome as I am currently not on macos 14. I will check your output/log more thoroughly later today to see what steps can be taken.

Jianfengliu0413 commented 1 year ago

@sbmpost @Dimentium Thank you for your reply. I am very happy you could help and notice this problem. I know absolutely nothing about the code. but I cannot work properly without this feature (focus but no raise window).

One more information is: If I use the UI version and setting below: If you quit the UI app and restart, then click the icon more than 10 times (on/off...on/off, i am not sure how many times later). then this 'focus without raising' works. but every time back from 'wake', i have to redo the procedures. It only works in the UI version, for the command version, I never succeed to do that (by killing the process then restarting, it never come to work).

image
sbmpost commented 1 year ago

@andyandhope

About focus only settings in the UI that only seem to work after enable, disable, enable, ...

This might be a permission issue. Also two instances may be running at the same time. I suggest you:

  1. Check with "Activity Monitor" how many AutoRaise instances are running and kill them all.

  2. Go to Accessibility settings in "System Preferences" and remove any AutoRaise items you see. More about this is explained in the README.

  3. Start the UI version again and enable. It should ask you for permissions again and in System Preferences, Accessibility, one AutoRaise item should have reappeared. For this item enable Accessibility.

If these steps don't work it might indeed be a problem with MacOS 14.

To further debug in this case, first try to recompile without the "OLD_ACTIVATION_METHOD" flag. Then when starting AutoRaise, specify "verbose true" (see for a detailed example the README under the troubleshooting section). The logs emitted might give us a clue then of what is going on.

Jianfengliu0413 commented 1 year ago

Hi @sbmpost ,

I know what you mean. and I'm sure it is not because of the accessiblilty setting. here I upload the log file, may there is some hents?

`Last login: Wed Jul 12 09:20:27 on ttys000 /Applications/AutoRaise.app/Contents/MacOS/AutoRaise ; exit; ➜ ~ /Applications/AutoRaise.app/Contents/MacOS/AutoRaise ; exit;

v3.9 by sbmpost(c) 2023, usage:

AutoRaise -pollMillis <20, 30, 40, 50, ...> -delay <0=no-raise, 1=no-delay, 2=50ms, 3=100ms, ...> -warpX <0.5> -warpY <0.5> -scale <2.0> -altTaskSwitcher <true|false> -ignoreSpaceChanged <true|false> -ignoreApps "<App1,App2, ...>" -stayFocusedBundleIds "<Id1,Id2, ...>" -disableKey <control|option|disabled> -mouseDelta <0.1> -verbose <true|false>

Started with:

2023-07-12 09:20:27.442 AutoRaise[3529:78531] AXIsProcessTrusted: YES 2023-07-12 09:20:27.461 AutoRaise[3529:78531] System cursor scale: 1.499866 2023-07-12 09:20:27.468 AutoRaise[3529:78531] Got run loop source: YES 2023-07-12 09:20:27.469 AutoRaise[3529:78531] Registered app activated selector 2023-07-12 09:20:27.501 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:27.501 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:27.502 AutoRaise[3529:78531] Desktop origin (0.000000, -320.000000) 2023-07-12 09:20:29.579 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:29.579 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:29.617 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:29.618 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:29.667 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:29.667 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:29.742 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:29.765 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:29.816 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:29.866 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:30.482 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:30.533 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:30.585 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:30.640 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:30.640 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:30.684 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:30.684 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:30.736 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:30.736 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:30.788 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:30.788 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:30.837 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:30.838 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:30.892 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:30.893 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:33.843 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:33.844 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:33.892 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:33.892 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:33.945 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:33.945 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:33.997 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:34.075 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.150 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.252 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.354 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.408 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.455 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.506 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.558 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:34.560 AutoRaise[3529:78531] Raise 2023-07-12 09:20:34.561 AutoRaise[3529:78531] Activate 2023-07-12 09:20:34.569 AutoRaise[3529:78531] App activated, waiting 0.010s 2023-07-12 09:20:34.580 AutoRaise[3529:78531] App activated 2023-07-12 09:20:34.606 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:36.294 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:37.006 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:37.056 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:37.108 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:37.163 AutoRaise[3529:78531] Mouse window: Re: [sbmpost/AutoRaise] not work properly on macOS14 (Issue #147) – All Mail 2023-07-12 09:20:37.215 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:37.319 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:37.319 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:37.371 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:37.371 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:37.421 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:37.422 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:37.473 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:37.473 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:37.519 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:37.519 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:37.573 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:37.573 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:41.494 AutoRaise[3529:78531] Mouse window: /Applications/AutoRaise.app/Contents/MacOS 2023-07-12 09:20:41.495 AutoRaise[3529:78531] Excluding app 2023-07-12 09:20:41.548 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:41.651 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:41.703 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:41.750 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:41.800 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:41.850 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:41.852 AutoRaise[3529:78531] Raise 2023-07-12 09:20:41.854 AutoRaise[3529:78531] Activate 2023-07-12 09:20:41.872 AutoRaise[3529:78531] App activated, waiting 0.010s 2023-07-12 09:20:41.883 AutoRaise[3529:78531] App activated 2023-07-12 09:20:41.911 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.052 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.107 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.155 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.257 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.307 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.358 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.410 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.461 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.771 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.819 AutoRaise[3529:78531] Fallback 2023-07-12 09:20:42.861 AutoRaise[3529:78531] Mouse window: B1-WordList 2023-07-12 09:20:42.870 AutoRaise[3529:78531] Copy element: failure 2023-07-12 09:20:42.870 AutoRaise[3529:78531] No raisable window 2023-07-12 09:20:42.921 AutoRaise[3529:78531] Copy element: no value 2023-07-12 09:20:42.921 AutoRaise[3529:78531] Fallback 2023-07-12 09:20:42.922 AutoRaise[3529:78531] No raisable window 2023-07-12 09:20:42.970 AutoRaise[3529:78531] Copy element: no value 2023-07-12 09:20:42.970 AutoRaise[3529:78531] Fallback 2023-07-12 09:20:42.972 AutoRaise[3529:78531] No raisable window 2023-07-12 09:20:43.022 AutoRaise[3529:78531] No raisable window 2023-07-12 09:20:43.074 AutoRaise[3529:78531] No raisable window ^C ➜ ~

############Then I try with the scond setting.##########

Last login: Wed Jul 12 09:23:11 on ttys000 /Applications/AutoRaise.app/Contents/MacOS/AutoRaise ; exit; ➜ ~ /Applications/AutoRaise.app/Contents/MacOS/AutoRaise ; exit;

v3.9 by sbmpost(c) 2023, usage:

AutoRaise -pollMillis <20, 30, 40, 50, ...> -delay <0=no-raise, 1=no-delay, 2=50ms, 3=100ms, ...> -warpX <0.5> -warpY <0.5> -scale <2.0> -altTaskSwitcher <true|false> -ignoreSpaceChanged <true|false> -ignoreApps "<App1,App2, ...>" -stayFocusedBundleIds "<Id1,Id2, ...>" -disableKey <control|option|disabled> -mouseDelta <0.1> -verbose <true|false>

Started with:

2023-07-12 09:23:12.133 AutoRaise[3978:82934] AXIsProcessTrusted: YES 2023-07-12 09:23:12.144 AutoRaise[3978:82934] System cursor scale: 1.499866 2023-07-12 09:23:12.151 AutoRaise[3978:82934] Got run loop source: YES 2023-07-12 09:23:12.151 AutoRaise[3978:82934] Registered app activated selector 2023-07-12 09:23:12.165 AutoRaise[3978:82934] Desktop origin (0.000000, -320.000000) 2023-07-12 09:23:42.926 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:23:42.936 AutoRaise[3978:82934] App activated 2023-07-12 09:23:47.672 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:23:47.682 AutoRaise[3978:82934] App activated 2023-07-12 09:23:48.252 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:23:48.263 AutoRaise[3978:82934] App activated 2023-07-12 09:23:53.155 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:23:53.166 AutoRaise[3978:82934] App activated 2023-07-12 09:24:02.659 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:24:02.669 AutoRaise[3978:82934] App activated 2023-07-12 09:24:03.873 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:24:03.884 AutoRaise[3978:82934] App activated 2023-07-12 09:24:08.730 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:24:08.743 AutoRaise[3978:82934] App activated 2023-07-12 09:24:09.934 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:24:09.944 AutoRaise[3978:82934] App activated 2023-07-12 09:24:10.949 AutoRaise[3978:82934] App activated, waiting 0.010s 2023-07-12 09:24:10.960 AutoRaise[3978:82934] App activated ^C ➜ ~

`

sbmpost commented 1 year ago

@andyandhope I noticed that in the logs for the second setting, the focusDelay parameter is missing. This means the "EXPERIMENTAL_FOCUS_FIRST" compile flag wasn't specified during compilation. Maybe you can try with this compile flag and specify -focusDelay 1 -verbose 1 when starting AutoRaise?

Jianfengliu0413 commented 1 year ago

"-focusDelay" setting cannot be detected, after trying both 'EXPERIMENTAL_FOCUS_FIRST' or "-DOLD_ACTIVATION_METHOD -DEXPERIMENTAL_FOCUS_FIRST";

➜ AutoRaise-master make CXXFLAGS="-DOLD_ACTIVATION_METHOD -DEXPERIMENTAL_FOCUS_FIRST" && make install make: Nothing to be done forall'. rm -rf /Applications/AutoRaise.app cp -r AutoRaise.app /Applications/ ➜ AutoRaise-master ./AutoRaise -pollMillis 50 -delay 0 -focusDelay 1 -warpX 0.5 -warpY 0.1 -scale1.0 -altTaskSwitcher false -ignoreSpaceChanged false -ignoreApps "Finder,App2" -stayFocusedBundleIds "Id1,Id2" -disableKey control -mouseDelta 0.1 -verbose 1

v3.9 by sbmpost(c) 2023, usage:

AutoRaise -pollMillis <20, 30, 40, 50, ...> -delay <0=no-raise, 1=no-delay, 2=50ms, 3=100ms, ...> -warpX <0.5> -warpY <0.5> -scale <2.0> -altTaskSwitcher <true|false> -ignoreSpaceChanged <true|false> -ignoreApps "<App1,App2, ...>" -stayFocusedBundleIds "<Id1,Id2, ...>" -disableKey <control|option|disabled> -mouseDelta <0.1> -verbose <true|false>

Started with:

2023-07-12 09:56:39.841 AutoRaise[5099:125958] AXIsProcessTrusted: YES 2023-07-12 09:56:39.856 AutoRaise[5099:125958] System cursor scale: 1.499866 2023-07-12 09:56:39.865 AutoRaise[5099:125958] Got run loop source: YES 2023-07-12 09:56:39.865 AutoRaise[5099:125958] Registered app activated selector 2023-07-12 09:56:39.875 AutoRaise[5099:125958] Desktop origin (0.000000, -320.000000) 2023-07-12 09:57:08.305 AutoRaise[5099:125958] App activated, waiting 0.010s 2023-07-12 09:57:08.316 AutoRaise[5099:125958] App activated ^C ➜ AutoRaise-master cd /Users/macjianfeng/Dropbox/Downloads/@SortMaster/z_others/AutoRaise-master/
➜ AutoRaise-master make CXXFLAGS="-DEXPERIMENTAL_FOCUS_FIRST" && make install make: Nothing to be done for `all'. rm -rf /Applications/AutoRaise.app cp -r AutoRaise.app /Applications/ ➜ AutoRaise-master ./AutoRaise -pollMillis 50 -delay 0 -focusDelay 1 -warpX 0.5 -warpY 0.1 -scale1.0 -altTaskSwitcher false -ignoreSpaceChanged false -ignoreApps "Finder,App2" -stayFocusedBundleIds "Id1,Id2" -disableKey control -mouseDelta 0.1 -verbose 1

v3.9 by sbmpost(c) 2023, usage:

AutoRaise -pollMillis <20, 30, 40, 50, ...> -delay <0=no-raise, 1=no-delay, 2=50ms, 3=100ms, ...> -warpX <0.5> -warpY <0.5> -scale <2.0> -altTaskSwitcher <true|false> -ignoreSpaceChanged <true|false> -ignoreApps "<App1,App2, ...>" -stayFocusedBundleIds "<Id1,Id2, ...>" -disableKey <control|option|disabled> -mouseDelta <0.1> -verbose <true|false>

Started with:

2023-07-12 09:58:47.763 AutoRaise[5322:128824] AXIsProcessTrusted: YES 2023-07-12 09:58:47.778 AutoRaise[5322:128824] System cursor scale: 1.499866 2023-07-12 09:58:47.786 AutoRaise[5322:128824] Got run loop source: YES 2023-07-12 09:58:47.786 AutoRaise[5322:128824] Registered app activated selector 2023-07-12 09:58:47.797 AutoRaise[5322:128824] Desktop origin (0.000000, -320.000000) 2023-07-12 09:59:16.743 AutoRaise[5322:128824] App activated, waiting 0.010s 2023-07-12 09:59:16.754 AutoRaise[5322:128824] App activated 2023-07-12 09:59:18.151 AutoRaise[5322:128824] App activated, waiting 0.010s 2023-07-12 09:59:18.162 AutoRaise[5322:128824] App activated ^C`

sbmpost commented 1 year ago

@andyandhope Thanks for this feeback. So it would seem that the private skylight api is either not accessible or no longer available. Can you check in a terminal like so:

test -d /System/Library/PrivateFrameworks/SkyLight.framework && echo 1 || echo 0

Alternatively you can simply navigate in the terminal to the above folder of course.

Jianfengliu0413 commented 1 year ago

Hi @sbmpost yes, it is. answer of your code is "1"; image

sbmpost commented 1 year ago

I think I see why the focusDelay parameter still isn't there (thanks to your detailed logs).

➜ AutoRaise-master make CXXFLAGS="-DEXPERIMENTAL_FOCUS_FIRST" && make install
make: Nothing to be done for `all'.

Notice the part saying "Nothing to be done". Because the source code itself hasn't changed, the make command thinks everything is up-to-date and doesn't actually recompile like it should. May I suggest:

make clean && make CXXFLAGS="-DEXPERIMENTAL_FOCUS_FIRST" && ./AutoRaise -focusDelay 1 -verbose 1
Jianfengliu0413 commented 1 year ago

You really are a genius. Thank you so much. Everything gets perfect again.