Unified interface
This commit is contained in:
parent
095b54c26d
commit
eb5efc4557
3 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ use wlroots::{
|
||||||
with_handles,
|
with_handles,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn manager() -> input::manager::Builder {
|
pub fn build() -> input::manager::Builder {
|
||||||
input::manager::Builder::default()
|
input::manager::Builder::default()
|
||||||
.keyboard_added(keyboard_added)
|
.keyboard_added(keyboard_added)
|
||||||
.pointer_added(pointer_added)
|
.pointer_added(pointer_added)
|
||||||
|
|
|
@ -60,7 +60,7 @@ fn build_compositor() -> compositor::Compositor {
|
||||||
compositor::Builder::new()
|
compositor::Builder::new()
|
||||||
.gles2(true)
|
.gles2(true)
|
||||||
.data_device(true)
|
.data_device(true)
|
||||||
.input_manager(input::manager())
|
.input_manager(input::build())
|
||||||
.output_manager(output::manager())
|
.output_manager(output::build())
|
||||||
.build_auto(CompositorState::new())
|
.build_auto(CompositorState::new())
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ use crate::CompositorState;
|
||||||
use log::debug;
|
use log::debug;
|
||||||
use wlroots::{compositor, output, with_handles};
|
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)
|
output::manager::Builder::default().output_added(output_added)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue