Changeset View
Changeset View
Standalone View
Standalone View
options.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
76 | // 0Hz or less is invalid, so we fallback to a default rate | 76 | // 0Hz or less is invalid, so we fallback to a default rate | ||
77 | if (rate <= 0) | 77 | if (rate <= 0) | ||
78 | rate = 60; // and not shitty 50Hz for sure! *grrr* | 78 | rate = 60; // and not shitty 50Hz for sure! *grrr* | ||
79 | 79 | | |||
80 | // QTimer gives us 1msec (1000Hz) at best, so we ignore anything higher; | 80 | // QTimer gives us 1msec (1000Hz) at best, so we ignore anything higher; | ||
81 | // however, additional throttling prevents very high rates from taking place anyway | 81 | // however, additional throttling prevents very high rates from taking place anyway | ||
82 | else if (rate > 1000) | 82 | else if (rate > 1000) | ||
83 | rate = 1000; | 83 | rate = 1000; | ||
84 | qCDebug(KWIN_CORE) << "Vertical Refresh rate " << rate << "Hz (" << syncScreenName << ")"; | 84 | // qCDebug(KWIN_CORE) << "Vertical Refresh rate " << rate << "Hz (" << syncScreenName << ")"; | ||
85 | return rate; | 85 | return rate; | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | Options::Options(QObject *parent) | 88 | Options::Options(QObject *parent) | ||
89 | : QObject(parent) | 89 | : QObject(parent) | ||
90 | , m_settings(new Settings(kwinApp()->config())) | 90 | , m_settings(new Settings(kwinApp()->config())) | ||
91 | , m_focusPolicy(ClickToFocus) | 91 | , m_focusPolicy(ClickToFocus) | ||
92 | , m_nextFocusPrefersMouse(false) | 92 | , m_nextFocusPrefersMouse(false) | ||
▲ Show 20 Lines • Show All 1031 Lines • Show Last 20 Lines |