Wrong window placement - dual monitor Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Wrong window placement - dual monitor Linux

Davíð Þór Bragason
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. Only exception seems to be file (open/save) dialogs, with
do properly appear on the same display as the main ImageJ window.

This impedes work flow, as e.g. a histogram/results table belonging to an
image I'm working on (after manually dragging it onto the primary display)
will appear on the laptop screen.

"xrandr" confirms my external monitor (HDMI1) being primary:
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 32767 x 32767
LVDS1 connected 1920x1080+0+0 (normal left inverted right x axis y axis)
344mm x 193mm
HDMI1 connected primary 1920x1080+1920+0 (normal left inverted right x axis
y axis) 531mm x 298mm


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

GUI.getMaxWindowBounds()   and

GraphicsEnvironment.getMaximumWindowBounds()

only the latter seems to reference the primary display.

I saw that there is a patch at https://github.com/imagej/ij1-patcher/issues/2

which would require building one's own ImageJ.

Does somebody know of another way around this problem?

Thank you.

David

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Wrong window placement - dual monitor Linux

Davíð Þór Bragason
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
Reply | Threaded
Open this post in threaded view
|

Re: Wrong window placement - dual monitor Linux

Gabriel Landini
On Saturday 19 Jul 2014 19:05:03 Davíð Þór Bragason wrote:

> 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.

If you are using KDE, you can set in software which display is left or right
(by dragging the monitor diagrams around to the desire position) and which is
the primary monitor (click on the star icon).
These options are in the "Display and Monitor" settings of KDE. In opensuse
this appears under System Settings in the KDE menu, but can't remember where
it is in Kubuntu.

Cheers

Gabriel

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