Skip to content

winit 0.10.1/x11 render issue - top & right cut off #398

Closed

Description

@alexheretic

Today my projects are missing a small part of the top & right sections after updating to winit 0.10.1. This appears to only affect x11 (I tested in windows which was fine).

My projects are all affected using gfx/glutin, but this can also be reproduced by using glium cargo update; cargo run --example image

winit 0.10.1 (cut off top & right)

glium-winit-0 10 1

winit =0.10.0 (expected)

glium-winit-0 10 0

  • Rendering is correct simply by adding winit = "=0.10.0" to the Cargo.toml
  • Window inner size of 400x300 was used for the screenshots
  • Testing on Arch Linux / Gnome

Activity

  1. changed the title [-]winit 0.10.1/x11 render issue [/-] [+]winit 0.10.1/x11 render issue - top & right cut off[/+] on Feb 6, 2018
  2. added
    DS - x11
    on Feb 6, 2018
  3. tomaka commented on Feb 6, 2018

    @tomaka
    Contributor

    Probably an HiDPI issue.

  4. alexheretic commented on Feb 7, 2018

    @alexheretic
    ContributorAuthor

    I've narrowed down the regression to being introduced with 150d270 (#386).

    My hidpi_factor is 1 before & after, so I don't think that is an issue.

  5. alexheretic commented on Feb 7, 2018

    @alexheretic
    ContributorAuthor

    This issue is present all x11 DE/WMs on my setup. It's least pronounced in i3, but there is still a difference (mostly the right cut off).

    Gnome

    gnome-winit

    KDE Plasma

    kde-plasma-winit

    Xfce

    xfce-winit

    Mate

    mate-winit

    Budgie

    budgie-winit

    i3

    i3-winit
    Note: I sized i3 manually

  6. b-r-u commented on Feb 7, 2018

    @b-r-u
    Contributor

    i3

    Increasing the border width makes this issue really noticeable.
    (Add new_window pixel 20 in .i3/config)
    This is a floating window with a 20px blue border:

    glium_i3_border_20px

  7. alexheretic commented on Feb 7, 2018

    @alexheretic
    ContributorAuthor

    I've just tested this on separate hardware too, running Ubuntu 16.04
    screenshot from 2018-02-07 14-27-38

    I think this + @b-r-u's example shows this does indeed affect all x11 setups. We should probably revert 150d270. Are you able to produce this @jwilm?

    I wonder if we can automate a regression test for this - an image comparison under xvfb perhaps? It'd be nice to have a headless test for all backends ideally.

  8. added a commit that references this issue on Feb 7, 2018
    6a4b453
  9. jwilm commented on Feb 7, 2018

    @jwilm
    Contributor

    @alexheretic The bug doesn't really show up on my machine because I only have 2 px borders, but there's no doubt it was introduced there. Rather than revert that commit, it would be reasonable to update that code to get the dimensions from the Window winit references and still return positioning data based on the most-parent window.

  10. added a commit that references this issue on Feb 7, 2018
    3b47d28
  11. jwilm commented on Feb 7, 2018

    @jwilm
    Contributor

    @alexheretic does #402 resolve this for you?

  12. alexheretic commented on Feb 7, 2018

    @alexheretic
    ContributorAuthor

    @jwilm fair enough, yep I just checked it. Thanks for fixing this!

  13. b-r-u commented on Feb 7, 2018

    @b-r-u
    Contributor

    This commit works for me, too.

  14. alexheretic commented on Feb 8, 2018

    @alexheretic
    ContributorAuthor

    @tomaka We should merge #402 and release before closing this don't you think?

  15. added a commit that references this issue on Feb 8, 2018
    4cce652
  16. tomaka commented on Feb 8, 2018

    @tomaka
    Contributor

    Whoops! Merging the PR is now done, closing the issue is ok even when not released.

  17. added a commit that references this issue on Mar 19, 2018
    f251c8a
  18. added a commit that references this issue on Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - x11

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions