fikovnik / ShiftIt

Managing windows size and position in OSX
5.53k stars 359 forks source link

ShiftIt commands not working at all with MacOS Monterey update #323

Open spellr opened 2 years ago

spellr commented 2 years ago

After updating my macOS from 12.2 to 12.2.1, ShitfIt stopped working.

Debug log shows:

2022-02-20 09:53:58.277 ShiftIt[87466/0x110979600] [lvl=3] -[ShiftItAppDelegate invokeShiftItActionByIdentifier_:] Execution of ShiftIt action: right failed: Unable to get active window
NSError stack trace:
org.shiftitapp.shifit.error:20103 - Unable to get active window
  Caused-by: org.shiftitapp.shifit.error:20101 - Unable to find focused window owner

In "Security & Privacy" preferences, ShitfIt is allowed under "Accessability"

Latest version 1.6.6

ShunSakurai commented 2 years ago

Hi @spellr, The same thing happened to me as well. I followed the steps in some past issues but it's unstable. It seems to work again but it doesn't stick 😥

I did:

  1. Quit ShiftIt
  2. Remove ShiftIt from Security & Privacy > Privacy > Accessibility with the minus sign
  3. (Optional: In my case, I needed to) Restart Mac
  4. Re-add ShiftIt from Accessibility
    • Added ShiftIt with the plus sign
    • When I restarted Mac with "Open At Login" enabled, ShiftIt already added itself to the list and prompted me to enable it at login

Thanks to:

gasedwards commented 2 years ago

Unless ShiftIt gets a new maintainer (#296) the only solution is migrate to an alternative. Even if you get it working on 12.2 there are issues when in a videoconferencing app is active (#319).

I've moved to hammerspoon-shiftit which is a like-for-like replacement for my use-case. I haven't tried modifying the config file or key bindings as I have no need to.

spellr commented 2 years ago

Switched to hammerspoon-shiftit, thanks @gasedwards!

Scarafone commented 2 years ago

I also realized that this for me has only been a problem while in a Zoom call.

2022-02-28 10:15:53.202 ShiftIt[5494/0x11194a600] [lvl=3] -[ShiftItAppDelegate invokeShiftItActionByIdentifier_:] Execution of ShiftIt action: right failed: Unable to get active window NSError stack trace: org.shiftitapp.shifit.error:20103 - Unable to get active window Caused-by: org.shiftitapp.shifit.error:20101 - Unable to find focused window owner 2022-02-28 10:15:53.550 ShiftIt[5494/0x11194a600] [lvl=3] -[ShiftItAppDelegate invokeShiftItActionByIdentifier_:] Execution of ShiftIt action: right failed: Unable to get active window NSError stack trace: org.shiftitapp.shifit.error:20103 - Unable to get active window Caused-by: org.shiftitapp.shifit.error:20101 - Unable to find focused window owner After zoom is closed the app does work again.

Thank you for the recommendation though. Much appreciated.

tleung999 commented 2 years ago

+1 to this. I am having the same issue as @Scarafone . Whenever I use any video conferencing call (Zoom, Slack huddle), ShiftIt will not work at all. As soon as Iog off the call, everything works again.

mikermcneil commented 2 years ago

Here's what worked for me: https://github.com/fikovnik/ShiftIt/issues/319#issuecomment-1071940241

danielavetica commented 2 years ago

I just switched from this to "tiles" (https://freemacsoft.net/tiles/) which works, looks and feels exactly the same, but works when having videocalls open. Rectangle may work too, but they had a "pro" version, as where tiles is free :)

michaelgmcd commented 2 years ago

Raycast provides this as well. You can set keyboard shortcuts to provide almost the same functionality.