mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Disable Wayland backend.
It is not ready for production yet.
This commit is contained in:
parent
310b44f35b
commit
9a144a6869
|
@ -49,7 +49,7 @@ pub enum MonitorID {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_available_monitors() -> VecDeque<MonitorID> {
|
pub fn get_available_monitors() -> VecDeque<MonitorID> {
|
||||||
if wayland::is_available() {
|
if false && wayland::is_available() {
|
||||||
// We are doing wayland
|
// We are doing wayland
|
||||||
wayland::get_available_monitors()
|
wayland::get_available_monitors()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
@ -64,7 +64,7 @@ pub fn get_available_monitors() -> VecDeque<MonitorID> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn get_primary_monitor() -> MonitorID {
|
pub fn get_primary_monitor() -> MonitorID {
|
||||||
if wayland::is_available() {
|
if false && wayland::is_available() {
|
||||||
MonitorID::Wayland(wayland::get_primary_monitor())
|
MonitorID::Wayland(wayland::get_primary_monitor())
|
||||||
} else {
|
} else {
|
||||||
MonitorID::X(x11::get_primary_monitor())
|
MonitorID::X(x11::get_primary_monitor())
|
||||||
|
@ -133,7 +133,7 @@ impl<'a> Iterator for WaitEventsIterator<'a> {
|
||||||
|
|
||||||
impl Window {
|
impl Window {
|
||||||
pub fn new(builder: BuilderAttribs) -> Result<Window, CreationError> {
|
pub fn new(builder: BuilderAttribs) -> Result<Window, CreationError> {
|
||||||
if wayland::is_available() {
|
if false && wayland::is_available() {
|
||||||
// we have a wayland connection, go for it
|
// we have a wayland connection, go for it
|
||||||
let window = try!(wayland::Window::new(builder));
|
let window = try!(wayland::Window::new(builder));
|
||||||
Ok(Window::Wayland(window))
|
Ok(Window::Wayland(window))
|
||||||
|
|
Loading…
Reference in a new issue