aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs
index 9d08d4a..61488a1 100644
--- a/src/x11/mod.rs
+++ b/src/x11/mod.rs
@@ -24,6 +24,12 @@ pub fn get_primary_monitor() -> MonitorID {
unimplemented!()
}
+impl MonitorID {
+ pub fn get_name(&self) -> Option<String> {
+ Some("<Unknown>".to_string())
+ }
+}
+
impl Window {
pub fn new(dimensions: Option<(uint, uint)>, title: &str, hints: &Hints, _: Option<MonitorID>)
-> Result<Window, String>