mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11:00
Added output to get_name for x11 monitors
This commit is contained in:
parent
906324e267
commit
4222d12e67
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ pub fn get_primary_monitor() -> MonitorID {
|
||||||
|
|
||||||
impl MonitorID {
|
impl MonitorID {
|
||||||
pub fn get_name(&self) -> Option<String> {
|
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) {
|
pub fn get_dimensions(&self) -> (uint, uint) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue