Added output to get_name for x11 monitors

This commit is contained in:
DavidPartouche 2014-09-19 19:57:52 +02:00 committed by Tomaka17
parent 906324e267
commit 4222d12e67

View file

@ -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) {