diff options
author | DavidPartouche <david@manateedev.com> | 2014-09-19 19:57:52 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-09-19 20:30:15 +0200 |
commit | 4222d12e6746bff2765e7a716eed4f4158f1906f (patch) | |
tree | d49d6b60ddc03c57fdfbabc47c80facbe138b1ba /src | |
parent | 906324e26744a773d43b8737fdc60ae730f24141 (diff) | |
download | glutin-4222d12e6746bff2765e7a716eed4f4158f1906f.tar.gz glutin-4222d12e6746bff2765e7a716eed4f4158f1906f.zip |
Added output to get_name for x11 monitors
Diffstat (limited to 'src')
-rw-r--r-- | src/x11/monitor.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x11/monitor.rs b/src/x11/monitor.rs index 2774d5f..f1b861b 100644 --- a/src/x11/monitor.rs +++ b/src/x11/monitor.rs @@ -35,7 +35,8 @@ pub fn get_primary_monitor() -> MonitorID { impl MonitorID { pub fn get_name(&self) -> Option<String> { - Some("<Unknown>".to_string()) + let MonitorID(screen_num) = *self; + Some(format!("Monitor #{}", screen_num)) } pub fn get_dimensions(&self) -> (uint, uint) { |