Xorg Mirroring with disabled panning

Hello Forum

Having difficulty with disabling panning that follows the mouse off screen. The setup I am working with is Ubuntu 18.04 with GXT 970, driver 390. There is two monitors HDMI and DP that are mirroring. A side effect of the Xorg is the display follows the cursor off screen and pans wide. How can this panning be disabled?

Behavior it is showing is at login screen the monitors are in extend mode, then after login they are mirrored. After login when moving a window to the right side of the screen it places the window in an extended space on the right while keeping the mouse in a constrained area.

The goal is to have monitors in mirrored mode all the time at both login and after login. There should also be no extra space to the side of the monitors.

Xorg.conf is below

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "VIT DISPLAY PORT"
    HorizSync       27.0 - 88.8
    VertRefresh     24.0 - 60.3
    Option         "DPMS"
    Option         "PreferredMode" "2560x1440"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 970"
EndSection

Section "Screen"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "MetaModeOrientation" "Clone"
    Option         "TwinViewOrientation" "Clone"
    Option         "TwinView" "True"
    Option         "PanAllDisplays" "false"
    Option         "ConstrainCursor" "True"
    Option         "Panning Domain" "2560x1440 @2560x1440 +0+0, 2560x1440 @2560x1440 +0+0"
    Option         "ConnectedMonitor" "DFP-1, DFP-2"
    Option         "UseDisplayDevice" "DFP-1, DFP-2"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-2.8"
    Option         "metamodes" "DP-0.8: 2560x1440 +0+0, HDMI-0: nvidia-auto-select +0+0, DP-0: NULL"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Please backup and remove /etc/X11/xorg.conf and ~/.config/monitors.xml and reboot. Then try to arrange the monitors using the Gnome control center, does that give you the wanted layout? please post the output of xrandr afterwards.

Fave followed the previous steps. The result however is extended monitors before login and mirroring after login.
Output from xrandr below

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DP-0.8 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   2560x1440     59.95*+
   1920x1080     60.00    59.94    50.00    29.97    25.00    23.98  
   1680x1050     59.95  
   1440x900      59.89  
   1360x768      60.02  
   1280x1024     60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   2560x1440     59.96*+
   1920x1080     60.00    59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1440x900      59.89  
   1366x768      59.79  
   1360x768      60.02  
   1280x1024     60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x768      59.87  
   1280x720      60.00    59.94    50.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)

So after login it is now the wanted layout? Then just copy the monitors.xml from ~/.config to /var/lib/gdm/.config and chown it gdm:gdm (not sure about the path in ubuntu, might also be /var/lib/gdm3/.config , check first) and reboot, then the login manager should have the same layout.