Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middle stops working after closing laptop and re-opening #69

Open
matthaeusheer opened this issue Feb 5, 2024 · 9 comments
Open

Middle stops working after closing laptop and re-opening #69

matthaeusheer opened this issue Feb 5, 2024 · 9 comments

Comments

@matthaeusheer
Copy link

Hi

I have middle configured as follows
image

Often times when I close my laptop and login again, Middle doesn't work anymore. My feeling is that this does not happen every single time. But enough to be quite annoying. When I go into Middle -> About -> Debug -> Relaunch it works absolutely fine again.

Properties of my Mac
image

Best,
Matt

@rxhanson
Copy link
Owner

rxhanson commented Feb 5, 2024

In that same debug menu, there is an option to delay relaunch after wake. You can enable that to make it wait a little longer before restarting the app, and this should fix your issue.

In the event that you still have an issue, then you can extend this wait time a little longer with a terminal command.
defaults write com.knollsoft.Middle restartOnWakeDelay -float 10

The default value is 1 second, using the menu item sets it to 5, and 10 should be more than enough. Obviously the downside of a larger wait is that you have to wait longer for it to start working.

This is a workaround for a quirk in the event processing in macOS, and if you're experiencing it, then it's likely that you have another app that's causing this. One potential way to figure it out is to remove accessibility privileges for all other apps and checking as you add them back in.

@matthaeusheer
Copy link
Author

I have the following config now. I feel like it got only worse. As of right now I canot make it work at all anymore (with or without the ticks). Also restart doesn't help. Tried to remove all the ticket things and still no success. :(
Also defaults write com.knollsoft.Middle restartOnWakeDelay -float 10 did not help.

image

@rxhanson
Copy link
Owner

The only thing that adding that delay does is make it take longer before the app restarts itself. Middle working less than before points to something external to Middle causing issues with the macOS event stream.

Do you have any other apps running that use accessibility privileges? If so, do you see different behavior when you quit those other apps?

When you have an issue, if you click on Show Viewer... in the debug menu, are there touches displayed?

@ChaseVsGodzilla
Copy link

@rxhanson I'm having the same issue as originally posted after upgrading to Sequoia, I've tried your fix but it doesn't seem to help. Any suggestions?

@rxhanson
Copy link
Owner

@ChaseVsGodzilla Thanks for letting me know. Are you seeing this with the trackpad or Magic Mouse, or both?

@ChaseVsGodzilla
Copy link

@rxhanson It seems to only be the magic mouse.

@rxhanson
Copy link
Owner

Thanks! I'll have a fix out soon.

@rxhanson
Copy link
Owner

@ChaseVsGodzilla Would you mind testing out this and letting me know if it fixes it? (I can't reproduce it myself so I don't have a good way to know)

https://middleclick.app/downloads/Middle1.8.7.dmg

@ChaseVsGodzilla
Copy link

@rxhanson Seems like that helped thanks so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants