Login  Register

Re: Wrong window placement - dual monitor Linux

Posted by Davíð Þór Bragason on Jul 19, 2014; 7:05pm
URL: http://imagej.273.s1.nabble.com/Wrong-window-placement-dual-monitor-Linux-tp5008830p5008831.html

Dear Wayne,

thank you for the swift reply. You are right, the error message window is
not split between displays. I have seen some other windows besides the Fiji
splash image appear that way before, but I can't recall what they were at
the moment.

I followed your suggestion and put the external display on the left of my
laptop, which takes care of this issue. Thank you very much for your help.

Sincerely,
David



On Sat, Jul 19, 2014 at 5:38 PM, Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]> wrote:

> Dear David,
>
> On Jul 19, 2014, at 9:36 AM, Davíð Þór Bragason wrote:
>
> > I'm running an up to date Fiji under Linux (up to date Kubuntu) with my
> > primary display being an external monitor on the right side of my laptop.
> > Every window displayed by ImageJ appears on the secondary (laptop)
> display
> > and some (the Fiji splash image, error messages, etc.) appear split
> between
> > the two displays.
>
> Error messages should not be split between the two displays. Is the error
> message dialog split between the screens when you run the following
> JavaScrip? What are the bounds displayed in the dialog?
>
>   importPackage(Packages.ij);
>   importPackage(Packages.ij.gui);
>   bounds = GUI.getMaxWindowBounds()
>   IJ.error("bounds: "+bounds);
>
> > ImageJ properties also list the external as "Monitor1":
> >  Screen size: 1920x1080
> >  Max window bounds: x=0,y=0,width=1920,height=1080
> > (x=1920,y=0,width=1920,height=1045)
> >  Union of bounds: x=0,y=0,width=3840,height=1080
> >  Monitor1: x=1920,y=0,width=1920,height=1080
> >  Monitor2: x=0,y=0,width=1920,height=1080
> >
> > Note that "Max window bounds" lists my laptop display first, then the
> > primary display in parentheses, as between the two methods
>
> ImageJ is using the laptop display because your external display has an
> origin of (1920,0) and ImageJ is not designed to work with displays that do
> not have an origin of (0,0). This is only a problem on Linux. Windows and
> OS X set the origin of the primary display to (0,0).
>
> > Does somebody know of another way around this problem?
>
> One work around would be to place the external display to the left of the
> laptop display. It would then have an origin of (0,0) and ImageJ would use
> it.
>
> Best regards,
>
> -wayne
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html