Move osmain into platform

This commit is contained in:
Brian Anderson 2012-05-03 20:28:22 -07:00
parent 9e37dd65cb
commit 6f52d2ec9e
4 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,4 @@
import platform::osmain;
import geom::*;
import comm::*;
import layout::display_list::*;

View file

@ -39,11 +39,10 @@ mod parser {
mod platform {
mod base;
mod osmain;
}
mod util {
mod tree;
}
mod osmain;

View file

@ -25,7 +25,7 @@ fn main(args: [str]) {
}
// The platform event handler thread
let osmain = osmain::osmain();
let osmain = platform::osmain::osmain();
// The compositor
let renderer = gfx::renderer::renderer(osmain);
@ -35,7 +35,7 @@ fn main(args: [str]) {
// The keyboard handler
let key_po = port();
send(osmain, osmain::add_key_handler(chan(key_po)));
send(osmain, platform::osmain::add_key_handler(chan(key_po)));
loop {
send(layout, layout::layout::build);
@ -49,7 +49,7 @@ fn main(args: [str]) {
comm::send(renderer, gfx::renderer::exit(comm::chan(draw_exit_confirm_po)));
comm::recv(draw_exit_confirm_po);
comm::send(osmain, osmain::exit);
comm::send(osmain, platform::osmain::exit);
break;
}
}