Bug 99574

Summary: 1366x768 screen is assigned 1360x768 resolution
Product: Wayland Reporter: razotivs
Component: XWaylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description razotivs 2017-01-28 05:04:48 UTC
1366x768 is very common resolution in laptops.

Submitting patch.
Comment 1 razotivs 2017-01-28 16:15:53 UTC
Same issue, reported by Ubuntu user [1].

[1] https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1023356
Comment 2 Daniel Stone 2017-01-30 11:20:15 UTC
Do you have a patch to submit?
Comment 3 Pekka Paalanen 2017-01-30 11:23:07 UTC
He did:
https://patchwork.freedesktop.org/patch/135777/
Comment 4 Olivier Fourdan 2017-01-31 16:06:02 UTC
Yes 1366x768 in not cvt compliant, seems it would be either 1360x768 or 1368x768 (apparently a quick search on google shows it's a problem not just for Xwayland).

But I am tempted to ask, why does it matter?

The root window is correctly sized to 1366x768, so is it just about the mode name in xrandr (which is called 1360x768) ?
Comment 5 razotivs 2017-02-01 02:43:01 UTC
It does not affect Chromium for example. But does matter to all fullscreen applications (all games both native and Wine are affected) that are running in XWayland as they set 1360x768 resolution and draw on 1366x768 root window and that results in blurriness on parts that does not match pixel grid and jagginess on parts that do.
Comment 6 razotivs 2017-02-11 21:42:30 UTC
Reworked patch has been accepted (feels great):

https://patchwork.freedesktop.org/patch/136706/

Thanks to Olivier Fourdan for valuable input and care!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.