Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem zooming when run under XQuartz on Mac with multiple monitors #150

Open
HDVUCAIR opened this issue Jan 31, 2022 · 0 comments
Open

Comments

@HDVUCAIR
Copy link

I don't believe this is a problem with ImageJ itself, but likely an issue with how XQuartz handles multiple monitor setups on the Mac.

I'm posting this in case someone else has encountered the issue and has a solution.

When invoking ImageJ on a remote server with XQuartz on a mac with multiple displays, zooming the ImageJ client window does not work. The window itself changes size, but the underlying image canvas does not adjust.

I can duplicate this whether I run the x-windows through a command line SSH tunnel or via an x-based remote desktop like X2Go.

Digging into the ImageJ java classes, it looks like the canEnlarge method in the ImageCanvas class uses the remote x's reported desktop size to determine whether the proposed zoom will fit. Because of the way XQuartz reports the desktop size with multiple monitor systems (see XQuartz/XQuartz#92), I suspect canEnlarge is triggering it's Null return case that then leads to the odd zoom behavior.

The canEnlarge algorithm probably works with most other x implementations, but seems to fall apart with XQuartz.

I may be in error that it's the canEnlarge method at play here, but I suspect it has to do with whatever method is querying X to get the display dimensions.

Again, this seems to be largely an XQuartz problem, but I thought it would be worth mentioning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant