dgurkaynak / Penc

Trackpad-oriented window manager for macOS
https://deniz.co/penc/
MIT License
1.11k stars 25 forks source link

Suggestion: make Penc operate on the window under the mouse cursor #3

Closed rsanchezsaez closed 5 years ago

rsanchezsaez commented 5 years ago

Suggestion: make Penc operate on the window under the mouse cursor, even if that window is not active.

I think that would be a more useful default behavior, rather than operating on the active window. Or at least, consider adding an option for it.

dgurkaynak commented 5 years ago

That would be interesting, I will definitely try it out.

dgurkaynak commented 5 years ago

Hey guys, after struggling with macOS's accessibility api for almost a week, I finally managed to implement this feature. Window selection setting is added to preferences, you can update the app to v0.4.0. Love to hear your feedbacks.

screen shot 2018-08-22 at 19 02 37
rsanchezsaez commented 5 years ago

Thanks for doing this, that was quick!

Unfortunately, it doesn't work for me at all. If I select that option, Penc stops working. Can I send you any information to help you debug the issue?

dgurkaynak commented 5 years ago

Hmmm, but focused window mode is still working right? I think I will prepare a special build with improved logging and send you.

Anyone else experiencing same issue?

rsanchezsaez commented 5 years ago

Yeah, focused window mode still works. I've tried without connecting an external monitor, same result. I'm on macOS High Sierra 10.13.6 (17G65).

dgurkaynak commented 5 years ago

It's weird, we have same os version. I've already tried with and without external monitor, it works for me. Anyway, I will prepare a debug build and let you know @rsanchezsaez, probably in weekend. Thanks 👍

dgurkaynak commented 5 years ago

Hey @rsanchezsaez, I think I found the problem. I am using the dock with auto-hide setting on, when dock is always visible, it confuses the window selection algorithm. I assume your dock is always visible? Anyway I refined it and released 0.4.1 version. Can you please update the app and try again?

rsanchezsaez commented 5 years ago

@dgurkaynak Yeah, my dock is always visible. It works now, thank you very much!