Merge lp:~muktupavels/unity-greeter/add-primary-monitor-support into lp:unity-greeter
Proposed by
Alberts Muktupāvels
Status: | Merged |
---|---|
Approved by: | Robert Ancell |
Approved revision: | 1102 |
Merged at revision: | 1145 |
Proposed branch: | lp:~muktupavels/unity-greeter/add-primary-monitor-support |
Merge into: | lp:unity-greeter |
Diff against target: |
45 lines (+12/-2) 1 file modified
src/main-window.vala (+12/-2) |
To merge this branch: | bzr merge lp:~muktupavels/unity-greeter/add-primary-monitor-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Robert Ancell | Approve | ||
Review via email: mp+202627@code.launchpad.net |
Commit message
Add primary monitor support
Description of the change
In unity-greeter my monitor order was different from desktop session. Found
that I can copy ~/.config/
Now my monitors order is same in unity-greeter and desktop session, but primary
monitor is not respected. This commit will fix that.
To post a comment you must log in.
The primary variable being added to the Monitor structure seems redundant - instead why not just have?
private List<Monitor> monitors;
private Monitor? primary_monitor;
...
primary_monitor = null;
...
var monitor = new Monitor (geometry.x, geometry.y, geometry.width, geometry.height)
monitors. append (monitor);
primary_ monitor = monitor;
if (primary_monitor == null || i == primary)
Otherwise logic looks good