pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Pharo window cannot be resized with Moom

Open bpieber opened this issue 2 years ago • 5 comments

Bug description I use Moom to resize windows on macOS. It works with almost all applications and it is very convenient on a large screen.

To Reproduce Steps to reproduce the behavior:

  1. Launch Pharo
  2. Hover over the green resize button of the Pharo window.
  3. The Moom controls do not appear.

Expected behavior The Moom controls should appear.

Screenshots Here is how it normally looks: image

Version information:

  • OS: macOS
  • Version: 12.5 (21G72)
  • Pharo Version Pharo 11.0 - 64bit (development version, latest)

Expected development cost I have no idea. I am willing to test.

bpieber avatar Aug 21 '22 08:08 bpieber

I have done a check on this issue. The same is happen when using the OpenSource alternative App Rectangle. These applications are using Accessibilities features to interact with the other open windows. As I have seen, we are not generating correctly the AccessibilityElement for the main window. This is an issue inherited from SDL, basically, as we (and SDL) are using an NSWindow and an NSView directly we are not using the accessibility implementation that is implemented in all the other Cocoa widgets. As long I have seen, it is possible to use the objective-c bridge to provide information to the OS. More information about this is in OSX Dev documentation (https://developer.apple.com/documentation/appkit/accessibility_for_appkit?language=objc). I will continue checking this issue in the following weeks, but if someone wants to take the token is ok; I can provide a few more details.

tesonep avatar Aug 26 '22 08:08 tesonep

I have checked how Firefox is resolving this in the Gecko project (their multiplatform UI Fwk) but they are using deprecated API to perform this (or at least the version of Gecko I was reading... I should check it better, maybe in the dev branch)

tesonep avatar Aug 26 '22 08:08 tesonep

Gecko Code https://github.com/mozilla/gecko-dev/blob/master/accessible/mac/Platform.mm

GitHub
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html - gecko-dev/Pl...

tesonep avatar Aug 26 '22 09:08 tesonep

Also a useful hint, it is easy to debug the app with the Accessibility Inspector that comes with XCode. https://developer.apple.com/library/archive/documentation/Accessibility/Conceptual/AccessibilityMacOSX/index.html#//apple_ref/doc/uid/TP40001078

tesonep avatar Aug 26 '22 09:08 tesonep

Thank you for taking the time to look into this!

bpieber avatar Aug 26 '22 10:08 bpieber

Markus Denker asked on the mailing list to check the open bugs.

I just tested it with Pharao 10 on macOS 12.6.5 (21G531). The issue is still there.

bpieber avatar Apr 22 '23 10:04 bpieber