You are not logged in.

#1 2019-10-04 19:51:01

nixIT
Member
Registered: 2010-01-13
Posts: 548

dual monitors odd window positions

Hey gang,

I'ts been a long road for me to get my dual monitors working under xfce and I think it's complete... sort of.

Here is how I have it set up, I'm not sure if it's correct.

two  monitors:
primary monitor = right
secondary monitor = left

I don't always need/use my secondary monitors, so I have it disabled within the system.

issue 1:
When I enable it, all open windows will either center between the two monitors, or jump to my secondary monitor (on the left), which is not ideal.

issue 2:
when I disable my secondary monitor, the screens adjust, my primary display flashes, and all my open windows that WERE on my primary display are now pushed off to the right of the screen with only their lefthand border visible.

question:
Is there a way to not have my windows jump around when I enable/disable my secondary monitor?

I've set up profiles under Settings/Display/Advanced, one for single and one for dual, and have the two options under connecting displays selected. however I don't think I did that correctly. From what I understand it to be, when you connect/disconnect  my second monitor, that dual profile should turn on/off.

sometimes when I enable my secondary monitor, even though Mirror is not selected, the monitors are mirrored.

I do have xrandr installed, nvidia GPU with proprietary drivers.

Some things I'm confused about, should I set up an xorg.conf file? If so, how many "Monitor" sections should I have? I've seen some articles have 1, others have 2. Mine has 1, and I have no clue how to have it generate with 2, I've tried everything.

Any help/insights would be appreciated.

cheers,

--nixIT


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

#2 2019-10-04 20:50:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,739

Re: dual monitors odd window positions

The windows don't jump, you bend the universe (their absolute x/y coordinates are covered by different outputs due to your changes, try  eg. the behavior when toggling the right output)
A sufficiently smart WM could maintain a list of the outputs and map the coordinates accordingly.
For a dumber WM, a wrapper script using wmctrl and xrandr to toggle the outputs and shuffle the windows around is probably the only solution.

idk how smart xfwm4 is (in this regard), but if it doesn't work out of the box, I'm afraid "not very" :-(

Last edited by seth (2019-10-04 20:54:09)

Offline

Board footer

Powered by FluxBB