Unified interface
This commit is contained in:
parent
b8717e6c59
commit
cea9ecfc61
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue