NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 562 - Max window size false limited in dual monitor setup
Max window size false limited in dual monitor setup
Status: CONFIRMED
Product: Fiji
Classification: Unclassified
Component: ImageJ1
unspecified
PC Linux
: P5 enhancement
Assigned To: Wayne Rasband
Depends on:
Blocks:
 
Reported: 2013-02-05 01:11 CST by Stephan Saalfeld
Modified: 2016-04-26 11:22 CDT
2 users (show)

See Also:

Description Stephan Saalfeld 2013-02-05 01:11:55 CST
I am using Ubuntu on a laptop, external screen attached.  The external monitor has higher resolution than the internal screen of the laptop.  However, I cannot resize ImageJ windows beyond the size of the smaller screen.  When zooming in, the window size is accordingly adjusted and limited to the extents of the smaller screen.  Other Java AWT applications do not have this issue, I assume therefore that the limit is imposed by ImageJ itself, using the wrong property.  I think the issue had been reported earlier as I cannot remember that it ever worked.  In case that it is not possible to read the right property from Java, can we not just let users make their windows as large as they want?

Thanks in advance for helping!
Comment 1 Curtis Rueden 2016-04-25 13:18:39 CDT
It seems likely that the culprit is this code:

https://github.com/imagej/ImageJA/blob/v1.50i/src/main/java/ij/gui/GUI.java#L65-L67

    if ((bounds.x==0&&bounds.y==0) || (IJ.isLinux()&&gc.length>1))
        return new Dimension(bounds.width, bounds.height);

In other words: rather explicitly: if we're on Linux with multiple screens, use the bounds of the first screen for the screen size. Exactly the behavior you describe.

Not sure what the rationale for this approach is, but I'm guessing it was to work around some other issue relating to multiple screens on Linux...
Comment 2 Wayne Rasband 2016-04-26 11:22:46 CDT
You could try placing the external screen to the left of the laptop so that it becomes the primary monitor. There is a Linux dual monitor thread on the ImageJ mailing list at:

http://imagej.1557.x6.nabble.com/Wrong-window-placement-dual-monitor-Linux-td5008830.html