Fix no primary monitor panic in XWayland (#318)

* Fix no primary monitor panic in XWayland

In this case try to use the first existing monitor instead of panicking.
Fixes #317

* Shift no monitor panic to x11::get_primary_monitor

* Update changelog with xll get_primary_monitor fallback
This commit is contained in:
Alex Butler 2017-10-28 14:24:37 +01:00 committed by Victor Berger
parent 36058ab8e6
commit b3c5ee6219
2 changed files with 5 additions and 7 deletions

View file

@ -13,6 +13,7 @@
`EnumDisplayDevices`. This changes the value returned by `MonitorId::get_name()`.
- On Windows added `MonitorIdExt::hmonitor` method
- Impl `Clone` for `EventsLoopProxy`
- `EventsLoop::get_primary_monitor()` on X11 will fallback to any available monitor if no primary is found
# Version 0.8.3 (2017-10-11)