Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizable for window has no effect #160

Open
sumproxy opened this issue Aug 26, 2016 · 13 comments
Open

resizable for window has no effect #160

sumproxy opened this issue Aug 26, 2016 · 13 comments
Labels

Comments

@sumproxy
Copy link

Trying to apply resizable to window settings, but the window is still resizable after that. Confirmed on MacOS and Windows 7

extern crate piston_window;

use piston_window::*;

fn main() {
    let mut window: PistonWindow = WindowSettings::new("Piston!", [300, 300])
        .resizable(false)
        .build()
        .unwrap();
    while let Some(e) = window.next() {}
}
@bvssvni bvssvni added the draft label Sep 1, 2016
@VelocityRa
Copy link

Having the same problem here on Win7 and PistonWindow.

@bvssvni
Copy link
Member

bvssvni commented Sep 11, 2016

Use PistonWindow<Sdl2Window> or PistonWindow<GlfwWindow>. Glutin does not support resizable setting on OSX.

@sumproxy
Copy link
Author

Perhaps one should call for an enhancement?

@bvssvni
Copy link
Member

bvssvni commented Sep 11, 2016

@sumproxy I opened rust-windowing/glutin#812

@sumproxy
Copy link
Author

@bvssvni, thank you!

@VelocityRa
Copy link

How about PistonWindow<GlutinWindow> on Windows 7? Will this be supported?

@bvssvni
Copy link
Member

bvssvni commented Sep 11, 2016

@VelocityRa PistonWindow is PistonWindow<GlutinWindow> by default.

@VelocityRa
Copy link

Ah ok. What about my question? You said it's not supported on OSX, but I'm having the same problem on Windows.

@bvssvni
Copy link
Member

bvssvni commented Sep 11, 2016

@VelocityRa It will be fixed in glutin_window when Glutin gets the OSX issue fixed. For now, use Sdl2 or Glfw.

@VelocityRa
Copy link

@bvssvni Gotcha, thanks.

@azriel91
Copy link

azriel91 commented Jan 30, 2017

Hi, bumping the issue with what I've found so far:

  • winit#89 was merged and released in 0.5.6

  • This particular comment indicates it should work in Windows

  • My project's Cargo.lock says it's using the following versions:

    • winit 0.5.10
    • glutin 0.7.3
    • pistoncore-glutin_window 0.35.0
    • piston_window 0.63.0

Currently when using resizable(false), my window is still resizable (this is on Windows 10).


Edit: Here is a fix: PistonDevelopers/glutin_window#110

@marisarbq
Copy link

I have the same a problem.
my system is Windows 10
resizeable(false) is still doesn't work

andrewvy added a commit to andrewvy/settlers_of_lore that referenced this issue Jun 11, 2018
Switched from glutin to sdl2_window because of issues regarding `.resizable` on windows/osx.

See PistonDevelopers/piston_window#160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants