Convert new fullscreen API in all platforms

This commit is contained in:
Pedro Côrte-Real 2017-08-29 01:46:03 +01:00
parent 1382adbf11
commit 9693f7caa9
10 changed files with 14 additions and 28 deletions

View file

@ -6,11 +6,6 @@ use native_monitor::NativeMonitorId;
#[derive(Clone)]
pub struct MonitorId(pub Arc<XConnection>, pub u32);
impl PartialEq for MonitorId {
fn eq(&self, other: &MonitorId) -> bool {
self.1 == other.1
}
}
pub fn get_available_monitors(x: &Arc<XConnection>) -> VecDeque<MonitorId> {
let nb_monitors = unsafe { (x.xlib.XScreenCount)(x.display) };