Change default refresh rate to 60Hz

This changes the default refresh rate (which KWin uses if it cannot get the rate from the screen) from 50Hz to 60Hz.
There are two reasons for this:
- When plugging out the last active screen, even without calling xrandr the X server changes the screen geometry to some built-in minimum (320x200), with, of course, no information about the refresh rate. As a result, KWin assumes 50Hz and restarts the compositor to accommodate for this change, only to change it again soon thereafter when there's a screen again.
- I know of nobody using a 50Hz screen. Most people use 60Hz, some use 120Hz, but 50Hz seems pretty rare to me.

REVIEW: 110454
This commit is contained in:
Ralf Jung 2013-05-15 19:14:52 +02:00
parent 9aea91166b
commit d54176f52a

View file

@ -107,7 +107,7 @@ int currentRefreshRate()
// 0Hz or less is invalid, so we fallback to a default rate
if (rate <= 0)
rate = 50;
rate = 60;
// QTimer gives us 1msec (1000Hz) at best, so we ignore anything higher;
// however, additional throttling prevents very high rates from taking place anyway
else if (rate > 1000)