Unified interface

This commit is contained in:
buffet 2019-01-29 16:05:05 +01:00
parent 095b54c26d
commit eb5efc4557
3 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ use wlroots::{
with_handles,
};
pub fn manager() -> input::manager::Builder {
pub fn build() -> input::manager::Builder {
input::manager::Builder::default()
.keyboard_added(keyboard_added)
.pointer_added(pointer_added)

View file

@ -60,7 +60,7 @@ fn build_compositor() -> compositor::Compositor {
compositor::Builder::new()
.gles2(true)
.data_device(true)
.input_manager(input::manager())
.output_manager(output::manager())
.input_manager(input::build())
.output_manager(output::build())
.build_auto(CompositorState::new())
}

View file

@ -3,7 +3,7 @@ use crate::CompositorState;
use log::debug;
use wlroots::{compositor, output, with_handles};
pub fn manager() -> output::manager::Builder {
pub fn build() -> output::manager::Builder {
output::manager::Builder::default().output_added(output_added)
}