Some videocards' drivers (most notably propryetary nvidia) report
incorrect screen refresh rate via XRRRates(). Use
XRRGetScreenResources() + some math borrowed from xrandr instead.
Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/75
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
The conditions for screen reflection when saved was always evaluated
as false and generally were incorrect.
The problem was previausly unnoticed.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>