Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1314 - Linux: Audacity doesn't remember being extended across multiple displays
Linux: Audacity doesn't remember being extended across multiple displays
Status: REOPENED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.1.3
PC Linux
: P3 Repeatable
Assigned To: Default Assignee for New Bugs
http://forum.audacityteam.org/viewtop...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-26 09:03 UTC by Gale Andrews
Modified: 2018-08-03 19:07 UTC (History)
4 users (show)

See Also:
Steps To Reproduce:
On linux: 1. On a dual screen monitor, straddle the two screens. 2. Close Audacity. 3. Reopen the project. The Audacity display has collapsed to one of the monitors.
Release Note:
GROUP: Interface * (Linux) '''Audacity currently does not support being extended across multiple displays, so that Audacity is visibly straddled between monitors.''' If Audacity is quit when the greater part is on the primary monitor, Audacity reopens centred on the primary monitor. If Audacity is quit when the greater part is on the secondary monitor, Audacity reopens on and at left of the secondary monitor.
First Git SHA:
Group: ---
Workaround:
Closed:
gale: Regression+
gale: Test‑OK‑Win+
gale: Test‑OK‑Mac+
gale: Test‑OK‑Lin-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2016-01-26 09:03:45 UTC
It appears the fix for bug 1243 may not have taken into account more than one monitor. It has been reported (see URL) that if Audacity is quit with any part of the Audacity window specified in audacity.cfg exteending into the second monitor, than Audacity opens in the middle of the first monitor. I can confirm this on Windows 10 after setting "Extend these displays" in Windows Control Panel "Screen resolution". I assume it affects all platforms. 

The user reports that with two monitors 1920*1080, the first (main) on the left on Landscape, the second on the right on Portrait (or even both on Landscape), the audacity.cfg below in 2.1.1 puts Audacity in top left corner of the second monitor, but in 2.1.2 in the middle of the first monitor.    

[Window]
X=1921
Y=0
Width=1000
Height=400
Maximized=0
Normal_X=1921
Normal_Y=0
Normal_Width=1000
Normal_Height=400
Iconized=0
Comment 1 Gale Andrews 2016-03-28 12:11:39 UTC
Also, File > New opens on first (main) monitor even if Audacity is running on the secondary monitor.
Comment 2 James Crook 2016-09-01 18:30:50 UTC
DEVEL - FIXMADE
https://github.com/audacity/audacity/commit/8d55ab9afd44ee6e5cd2476e4992c534c5216fdb

I fixed the issue in comment 1 too.
If the window straddled two monitors it will open on the main monitor next time (deliberate)
Comment 3 Gale Andrews 2016-12-25 14:26:00 UTC
(In reply to Gale Andrews from comment #1)
> Also, File > New opens on first (main) monitor even if Audacity is running on the 
> secondary monitor.
That part works for me on Windows (the only OS I tested). If Audacity is wholly on the secondary monitor when closed, then it reopens there and File > New opens on the secondary monitor. This is so whether both monitors are oriented Landscape (default), or Portrait. 

Audacity on one monitor or on duplicated monitors is still tolerant as it should be of unmaximised windows which have been dragged a little off screen

I can't test Mac myself because I had to get a Mac Mini as second Mac and only have one working external monitor. 

(In reply to James Crook from comment #2)
> If the window straddled two monitors it will open on the main monitor next 
> time (deliberate)
So the release note is not fixed at all, which is what the complaint is about, and the bug should reopen. It is a regression on 2.0.6 for "Extend these displays" turned on for two displays in Landscape mode, though it doesn't work there for two displays in Portrait mode, which should also work.   

Here is an example config I got when closing with two monitors, Landscape mode, "Extend these displays", Audacity about equal width on each monitor, main monitor=1280*1024, secondary=1366*768:

[Window]
X=60
Y=0
Width=2218
Height=600
Maximized=0
Normal_X=60
Normal_Y=0
Normal_Width=2218
Normal_Height=600
Iconized=0

Something like that works fine in 2.0.6, reopening the same each time on both monitors.
Comment 4 James Crook 2016-12-25 18:02:15 UTC
The release notes previously said: "If Audacity is quit on any part of a second monitor it will reopen at default width in the middle of the first monitor"

That IS fixed, e.g. if the Audacity window takes up the second screen it reopens there.  I've therefore reworded the release note to make it clearer that the problem is in straddling two windows.
Comment 5 Gale Andrews 2016-12-25 19:24:22 UTC
I think the difference of understanding is intention. The user intends to straddle and chooses "Extend these displays" to be able to do that (if they deliberately straddle "far enough"). 

If they only duplicate the displays then I think it reasonable as now for Audacity to reopen centered at default width if they exit Audacity too far off screen.  Though I would much prefer defaulting to top left than centered, which seems poor use of space to me.  

I adjusted the bug title too.
Comment 6 James Crook 2016-12-27 18:04:43 UTC
DEVEL - FIX MADE

https://github.com/audacity/audacity/commit/32a33bf0e4180962959f0b3d95f40a3ffd879468

Clearing the residual issue.  Reopening Audacity project can straddle monitors.  I did not adjust the position of default screens to be top left, and don't intend to.
Comment 7 Gale Andrews 2017-03-15 20:47:40 UTC
(In reply to James Crook from comment #6)
> https://github.com/audacity/audacity/commit/32a33bf0e4180962959f0b3d95f40a3ffd879468
Works for me on Windows 10 and Sierra but not on Ubuntu 16.04.  See updated release note. Demoted a grade to P3 for it now being Linux only.
Comment 8 James Crook 2017-11-05 12:26:35 UTC
*** STEPS UPDATED ***