numist / Switch

A window-based context switcher for the Mac
157 stars 17 forks source link

Selector is not tracking the selected window when it is raised? #105

Closed numist closed 9 years ago

numist commented 9 years ago

The implementation work for #104 includes some work to make #59 easier in that the state machine will deactivate when it gets a windowList where the application of the first window is active and the first window matches the selectedWindow.

Unfortunately, it doesn't work—the selector maintains its selectedIndex instead of tracking the movement of the window. I suspect something odd is going on with equality testing of window objects. For now, the state machine has a hack (look for comments with this issue number in SWCoreWindowService.m and SWStateMachine.m) that preserves the pre-refactor behaviour.

numist commented 9 years ago

Not critical for 0.0.9, punting so I can get a solid release out sooner that fixes user-reported bugs.

numist commented 9 years ago

A lot of stuff wound up getting worked on under the umbrella of this bug, but the original issue still requires some unit tests to verify the fix.

numist commented 9 years ago

This is covered by -[SWSelectorTests testUpdateWithSharedSelectedObject]