Rob--W / open-in-browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them.
Other
83 stars 15 forks source link

The window always opens at the same location #50

Open aik opened 5 years ago

aik commented 5 years ago

https://github.com/Rob--W/open-in-browser/issues/7 is not fixed - the window opens on a laptop screen even though the external monitor is configured as primary and every other app honors that.

aik commented 5 years ago

is there a way to disable window positioning and let the system choose the location? thanks

Rob--W commented 5 years ago

is there a way to disable window positioning and let the system choose the location?

No. The logic responsible for moving the dialog is unconditional.

Can you provide the exact steps to reproduce your problem? What OS and version are you using, window manager, display configuration, etc.

aik commented 5 years ago

Linux Fedora 27 or 29, firefox 64.0, lenovo thinkpad x1 laptop with intel graphics, gnome3 window manager 3.30.1, 2 displays - external 4K set as primary (gnome3 bars go there) and laptop fullhd screen as a secondary. The dialog always opens on the laptop screen no matter what. Here xrandr:

[aik@aik ~]$ xrandr --current | egrep "\+| connected"
eDP-1 connected 1920x1080+3840+631 (normal left inverted right x axis y axis) 309mm x 173mm
   1920x1080     60.05*+  60.01    59.97    59.96    59.93  
DP-2-2 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 596mm x 335mm
   3840x2160     60.00*+  29.98  

The browser and everything is on DP-2-2 but the addon window goes to eDP-1.

aik commented 5 years ago

Things are actually better. When the addon is just installed, it works correctly - the window is on the main display. But if I disconnect the dock with external monitors, wait till the laptop screen becomes the main display, and then connect the dock back - the main display moves to the external monitor BUT firefox or addon (I bet it is firefox'es "screen" object) does not and therefore place the window to the laptop screen. I do not know how to resolve this :-/