Left half still works correctly when this occurs. This oddity only happens for a short period of time then Right side starts to work correctly again.
Since I could not reopen #554 I created this issue,
Here is a gif showing that Left half still works correctly and Right half leaving a gap on the right.
Spectacle Version 1.0.6 (593)
OS X 110.11.5 (15F34)
MacBook Pro (Retina, Mid 2012)
This has happened with at lest Safari.

I've been having the same issue as Bilalh but with Chrome instead of Safari.
I've been having this issue too with Chrome (version 50) and slack (version 2). Also a lot of other things that seem weird. Sometimes the fullscreen hotkey (cmd+alt+f) only resizes the window to a slightly larger size. If I press it many times it ends up filling the whole screen.
Also if I go from upper-half and then try right-half (cmd+alt+rightarrow) it fills the left half of the screen.
I just started noticing this today too, with Chrome and Skype. Mail.app moves correctly, but with a one-second delay.
I'm on version 1.0.6, on a 13" retina MBP, OSX 10.11.5 (15F34)
I've also ran into this bug.
I tried downgrading Spectacle from 1.0.6 to every version down to 1.0.1 (https://s3.amazonaws.com/spectacle/downloads/Spectacle+1.0.1.zip), but some apps (i.e. Chrome v51, Slack v2) still had the issue. I tried restarting my computer, but no change.
Then I realized I recently installed an app (https://qotoqot.com/qbserve/) that required access to Accessibility (System Preferences > Security & Privacy > Privacy tab). That's the same access that Spectacle needs to move windows around. I un-ticked & closed all apps listed in the Accessibility list, then I closed (cmd+q) and opened Chrome. The problem seems to have gone away.
Hopefully this may help as workaround or provide additional insight into reproduction steps required to fix this.
For what it's worth, I recorded a short video showing more or less the reproduction steps listed above:
https://youtu.be/nugm_r3GinU
The important bits from the video:
[0:00-0:13] Only Spectacle has Accessibility access. Chrome works fine. I used option+cmd+[left/right arrow] to move the window.
[0:13-0:22] Gave qbserve Accessibility access, but didn't have the app opened. Everything worked fine still.
[0:23-0:41] Shows the bug (qbserve opened with accessibility access).
I'm on OSX 10.11.5 (15F34) using a MacBook Pro (Retina, 15-inch, Mid 2015).
I had recently installed the same app. Nice catch.
On May 28, 2016, at 10:31 PM, Carlos Andreu [email protected] wrote:
I've also ran into this bug.
I tried downgrading Spectacle from 1.0.6 to every version down to 1.0.1 (https://s3.amazonaws.com/spectacle/downloads/Spectacle+1.0.1.zip https://s3.amazonaws.com/spectacle/downloads/Spectacle+1.0.1.zip), but some apps (i.e. Chrome v51, Slack v2) still had the issue. I tried restarting my computer, but no change.
Then I realized I recently installed an app (https://qotoqot.com/qbserve/ https://qotoqot.com/qbserve/) that required access to Accessibility (System Preferences > Security & Privacy > Privacy tab). That's the same access that Spectacle needs to move windows around. I un-ticked & closed all apps listed in the Accessibility list, then I closed (cmd+q) and opened Chrome. The problem seems to have gone away.
Hopefully this may help as workaround or provide additional insight into reproduction steps required to fix this.
For what it's worth, I recorded a short video showing more or less the reproduction steps listed above:
https://youtu.be/nugm_r3GinU https://youtu.be/nugm_r3GinU
The important bits from the video:
[0:00-0:13] Only Spectacle has Accessibility access. Chrome works fine. I used option+cmd+[left/right arrow] to move the window.
[0:13-0:22] Gave qbserve Accessibility access, but didn't have the app opened. Everything worked fine still.
[0:23-0:41] Shows the bug.I'm on OSX 10.11.5 (15F34) using a MacBook Pro (Retina, 15-inch, Mid 2015).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/eczarny/spectacle/issues/607#issuecomment-222339217, or mute the thread https://github.com/notifications/unsubscribe/AAzdCY5_D-2pVp-be8bdEFP1k6coVqpmks5qGPp7gaJpZM4IoD8p.
Hi, developer of Qbserve here. Qbserve uses AX API by getting AXUIElementRef appRef = AXUIElementCreateApplication(pid); and then finding nodes that are required for time tracking (once in 3 seconds).
It doesn't change windows sizes or positions, so I think it could be AX internal issue.
Spectacle is not the only app that got into a conflict, there're also issues with Hammerspoon and Moom, both use AX to move windows. (But I was able to fix Moom just by restarting the system.)
I'm a bit overloaded with bug fixes now, so if someone can run Spectacle from sources together with Qbserve and debug the issue it would be great. Or I'll do it next week. Hope the apps will work together eventually.
Ok, I found the line that does it. There's an undocumented attribute AXEnhancedUserInterface that is used by VoiceOver to enable screen reading.
I use it too because Chrome, Opera, and Firefox turn on accessibility for their pages (in case of Firefox – for all the UI) only after this attribute is set on them (Chromium sources).
Safari always shows accessibility nodes, so I should not force this attribute on it (my bad, fixed).
And it looks like setting AXEnhancedUserInterface leads to the size and position issues for Spectacle and other window-controlling apps.
I tried disabling this attribute when Qbserve doesn't need it. It fixed the problem with Spectacle but it's a bad idea because at least Chrome rebuilds all accessibility data for all its tabs each time when this attribute is turned back on.
So I'm thinking of these solutions:
AXEnhancedUserInterface on Chromium-based browsers along with these apps. Qbserve could still track them but it will fail to recognize pages when the address bar is focused or not present (full screen videos, full screen pages with hidden toolbar).@Bilalh @davharris @cnandreu We released an update today, the issue with window managers should be fixed (Spectacle, Moom, SizeUp, Optimal Layout, BetterTouchTool, Hammerspoon).
Qbserve now detects if any of these apps are present in the workspace and doesn't touch AXEnhancedUserInterface (or turns it off in case it was turned on before).
Also Chrome was just updated and there's improved accessibility for full screen videos, so I plan to stop using this attribute completely in the future.
Thanks @ivmirx. I updated Qbserve and it looks like everything is fixed.
@ivmirx Quitting Observe (1.35) make no different for me using Safari and still causes the error. So this issue might be unrelated
Closing this out as it doesn't appear to be an issue with Spectacle.
Most helpful comment
@Bilalh @davharris @cnandreu We released an update today, the issue with window managers should be fixed (Spectacle, Moom, SizeUp, Optimal Layout, BetterTouchTool, Hammerspoon).
Qbserve now detects if any of these apps are present in the workspace and doesn't touch
AXEnhancedUserInterface(or turns it off in case it was turned on before).Also Chrome was just updated and there's improved accessibility for full screen videos, so I plan to stop using this attribute completely in the future.