mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Added output to get_name for x11 monitors
This commit is contained in:
parent
906324e267
commit
4222d12e67
|
@ -35,7 +35,8 @@ pub fn get_primary_monitor() -> MonitorID {
|
|||
|
||||
impl MonitorID {
|
||||
pub fn get_name(&self) -> Option<String> {
|
||||
Some("<Unknown>".to_string())
|
||||
let MonitorID(screen_num) = *self;
|
||||
Some(format!("Monitor #{}", screen_num))
|
||||
}
|
||||
|
||||
pub fn get_dimensions(&self) -> (uint, uint) {
|
||||
|
|
Loading…
Reference in a new issue