Skip to content

with_maximized(true) produces non-maximized window #471

Closed

Description

@eterevsky

OS: Windows 10 Home, Version 1708, build 16299.371
winit version: 0.11.3
GPU: Nvidia GTX 1080, driver 385.54
Scaling factor: 150%

 let surface = winit::WindowBuilder::new()
        .with_maximized(true)
        .build_vk_surface(&events_loop, instance.clone())
        .unwrap();

opens a non-maximized window with dimensions 1024x768 instead of a maximized window.

Activity

  1. added
    DS - win32
    on Apr 18, 2018
  2. francesca64 commented on Apr 18, 2018

    @francesca64
    Member

    Do you have this problem running off of master? This was implemented recently: #457

  3. eterevsky commented on Apr 18, 2018

    @eterevsky
    Author

    Nope, I'm picking up the latest version from Cargo, 0.11.3. Should it be included in that release? set_fullscreen and set_decorations work for me, though the former sets wrong resolution (#469).

    Let me try to link the version from master.

  4. eterevsky commented on Apr 18, 2018

    @eterevsky
    Author

    Ah, yes. I'm playing with Vulkano and I can't try the latest version because the latest vulkano-win doesn't work with winit 0.12 or later.

  5. francesca64 commented on Apr 18, 2018

    @francesca64
    Member

    The new implementation isn't in any release yet, and unfortunately, even when it is released, it takes a while for everything to update downstream.

    doesn't work with winit 0.12 or later

    I assume you're referring to trying to patch the dependency. AFAIK there's nothing in either 0.12.0 or master that would break something written against 0.11.3, so it should work if you checkout vulkano and edit the dependency directly.

  6. eterevsky commented on Apr 18, 2018

    @eterevsky
    Author

    Ok, I tried to repro this bug with patched Vulkano and winit from master, and can confirm, that on master it works as expected.

  7. francesca64 commented on Apr 18, 2018

    @francesca64
    Member

    Thanks. We should have a new release out pretty soon.

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 - win32

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions