piston_window icon indicating copy to clipboard operation
piston_window copied to clipboard

resizable for window has no effect

Open sumproxy opened this issue 9 years ago • 13 comments

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() {}
}

sumproxy avatar Aug 26 '16 05:08 sumproxy

Notice to myself:

  • [x] https://github.com/PistonDevelopers/sdl2_window/issues/233
  • [ ] https://github.com/PistonDevelopers/glutin_window/issues/92
  • [x] https://github.com/PistonDevelopers/glfw_window/issues/133

bvssvni avatar Sep 01 '16 20:09 bvssvni

Having the same problem here on Win7 and PistonWindow.

VelocityRa avatar Sep 08 '16 16:09 VelocityRa

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

bvssvni avatar Sep 11 '16 13:09 bvssvni

Perhaps one should call for an enhancement?

sumproxy avatar Sep 11 '16 13:09 sumproxy

@sumproxy I opened https://github.com/tomaka/glutin/issues/812

bvssvni avatar Sep 11 '16 13:09 bvssvni

@bvssvni, thank you!

sumproxy avatar Sep 11 '16 14:09 sumproxy

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

VelocityRa avatar Sep 11 '16 15:09 VelocityRa

@VelocityRa PistonWindow is PistonWindow<GlutinWindow> by default.

bvssvni avatar Sep 11 '16 17:09 bvssvni

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

VelocityRa avatar Sep 11 '16 17:09 VelocityRa

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

bvssvni avatar Sep 11 '16 18:09 bvssvni

@bvssvni Gotcha, thanks.

VelocityRa avatar Sep 11 '16 19:09 VelocityRa

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: https://github.com/PistonDevelopers/glutin_window/pull/110

azriel91 avatar Jan 30 '17 03:01 azriel91

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

marisarbq avatar Mar 24 '18 13:03 marisarbq