fix headless build by ensuring NativeMonitorId enum is available internally even without the window feature; add Eq/PartialEq to NativeMonitorId
This commit is contained in:
parent
779f3ce888
commit
1b2fd6e6d0
7 changed files with 36 additions and 29 deletions
|
|
@ -8,7 +8,7 @@ use libc;
|
|||
use Api;
|
||||
use BuilderAttribs;
|
||||
use GlRequest;
|
||||
use NativeMonitorID;
|
||||
use native_monitor::NativeMonitorId;
|
||||
|
||||
use cocoa::base::{Class, id, YES, NO, NSUInteger, nil, objc_allocateClassPair, class, objc_registerClassPair};
|
||||
use cocoa::base::{selector, msg_send, msg_send_stret, class_addMethod, class_addIvar};
|
||||
|
|
@ -409,7 +409,7 @@ impl Window {
|
|||
unsafe {
|
||||
let screen = monitor.map(|monitor_id| {
|
||||
let native_id = match monitor_id.get_native_identifier() {
|
||||
NativeMonitorID::Numeric(num) => num,
|
||||
NativeMonitorId::Numeric(num) => num,
|
||||
_ => panic!("OS X monitors should always have a numeric native ID")
|
||||
};
|
||||
let matching_screen = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue