X11: util design improvements (#534)

This commit is contained in:
Francesca Frangipane
2018-05-27 08:49:35 -04:00
committed by GitHub
parent 282770f11a
commit 30f798b246
16 changed files with 992 additions and 1073 deletions

View File

@@ -66,7 +66,7 @@ impl MonitorId {
repr: util::MonitorRepr,
primary: bool,
) -> Self {
let (name, hidpi_factor) = unsafe { util::get_output_info(xconn, resources, &repr) };
let (name, hidpi_factor) = unsafe { xconn.get_output_info(resources, &repr) };
let (dimensions, position) = unsafe { (repr.get_dimensions(), repr.get_position()) };
let rect = util::Rect::new(position, dimensions);
MonitorId {