Fix crash when XRandR is not available
In this case calling XRRGetScreenInfo will lead to segfault, so checkfor extension first.
View differences
Fix crash when XRandR is not available
In this case calling XRRGetScreenInfo will lead to segfault, so check
for extension first.