[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2017-03-13 Thread MichaƂ Sawicz
** No longer affects: qtmir -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mir in Ubuntu. https://bugs.launchpad.net/bugs/1525293 Title: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial Status

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-21 Thread Daniel van Vugt
Invalid for Mir. Unless you can show Mir returning bad data using the 'mirout' command or such. Mir will indeed have some DisplayConfigurationOutput structures whose contents are not fully populated. However QtMir should be ignoring those structures on the basis of the 'used' and 'connected' flags

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-17 Thread Albert Astals Cid
I'd say error of negative values is when running under xvfb, we just workarounded that in unity8 version of that code, so probably not a mir problem? http://bazaar.launchpad.net/~dandrader/unity8/fixDragHandleTest/revision/2101 -- You received this bug notification because you are a member of Ub

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-17 Thread Daniel van Vugt
It appears QScreen.physicalDotsPerInch for Mir is implemented in QtMir: void Screen::setMirDisplayConfiguration(const mir::graphics::DisplayConfigurationOutput &screen) { ... // Physical screen size m_physicalSize.setWidth(screen.physical_size_mm.width.as_float()); m_physicalSize.setH

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-16 Thread Timo Jyrinki
This is on xenial only, using the latest UITK, and seen in the address- book-app's contact_list unit test as described in bug #1525174 if https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui- toolkit/validDpi/+merge/280312 is not applied in UI Toolkit. Notably this may have something to do with t

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-16 Thread Daniel van Vugt
Or (possibility #3) comment #1 might be wrong and maybe Qt gets the DPI from the new DPI events, and fails. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unity8 in Ubuntu. https://bugs.launchpad.net/bugs/1525293 Title: "w

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-16 Thread Daniel van Vugt
I've been testing and trying to reproduce this issue, including hacking 'mirout' so it works with unity8. In all cases I only see valid positive numbers for the physical display dimensions. So this bug is either nothing to do with Mir, or some device-specific problem. What device do you see the pr

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-13 Thread Daniel van Vugt
Found the aforementioned expression in the unity8 source. Of course the data comes from Mir still. ** Also affects: unity8 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to u

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-13 Thread Daniel van Vugt
** Also affects: mir Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to qtubuntu in Ubuntu. https://bugs.launchpad.net/bugs/1525293 Title: "window->screen()->physicalDotsPerInch() /

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-11 Thread Gerry Boland
** Also affects: qtubuntu (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to qtubuntu in Ubuntu. https://bugs.launchpad.net/bugs/1525293 Title: "window->screen()->physicalDo

[Touch-packages] [Bug 1525293] Re: "window->screen()->physicalDotsPerInch() / 25.4" may be negative on xenial

2015-12-11 Thread Gerry Boland
Qtubuntu reads the physical display size from Mir's DisplayConfiguration. That is then used by Qt to calculate physicalDotsPerInch(). -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to mir in Ubuntu. https://bugs.launchpad.net/bu