diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-12-05 18:01:55 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-12-05 18:01:55 +0100 |
commit | 48a02a0c8c9029543360884f1daaaade5d3f11a5 (patch) | |
tree | 0489869b1f75bbd9571e01c39a2d35427c984102 /src/api/x11 | |
parent | 8c3ffd2a4fe2dbb0033c1f830d384c0c2d8c88a1 (diff) | |
parent | 2be3c142f0778a3588982572a997dc669adca2a6 (diff) | |
download | glutin-48a02a0c8c9029543360884f1daaaade5d3f11a5.tar.gz glutin-48a02a0c8c9029543360884f1daaaade5d3f11a5.zip |
Merge pull request #659 from Aceeri/minmaxwindow
Minimum/maximum dimensions for windows in win32 API
Diffstat (limited to 'src/api/x11')
-rw-r--r-- | src/api/x11/window.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 507b202..297a4f3 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -305,6 +305,10 @@ impl Window { { let dimensions = window_attrs.dimensions.unwrap_or((800, 600)); + // not implemented + assert!(window_attrs.min_dimensions.is_none()); + assert!(window_attrs.max_dimensions.is_none()); + let screen_id = match window_attrs.monitor { Some(PlatformMonitorId::X(MonitorId(_, monitor))) => monitor as i32, _ => unsafe { (display.xlib.XDefaultScreen)(display.display) }, |