Carry output information on visible command all the way to C

This commit is contained in:
Dorota Czaplejewicz
2022-01-30 13:30:12 +00:00
parent e6c19a1e6a
commit f040e708a4
7 changed files with 77 additions and 42 deletions

View File

@ -326,15 +326,15 @@ pub struct Size {
/// wl_output mode
#[derive(Clone, Copy, Debug)]
struct Mode {
pub struct Mode {
width: i32,
height: i32,
}
#[derive(Clone, Copy, Debug)]
pub struct OutputState {
current_mode: Option<Mode>,
transform: Option<c::Transform>,
pub current_mode: Option<Mode>,
pub transform: Option<c::Transform>,
pub scale: i32,
}
@ -383,7 +383,7 @@ impl OutputState {
/// Not guaranteed to exist,
/// but can be used to look up state.
#[derive(Clone, Copy, PartialEq, Debug, Eq, Hash)]
pub struct OutputId(c::WlOutput);
pub struct OutputId(pub c::WlOutput);
// WlOutput is a pointer,
// but in the public interface,