Initialize member variables in Options
This commit is contained in:
parent
7b45ff9a73
commit
67425b8a5d
1 changed files with 73 additions and 3 deletions
76
options.cpp
76
options.cpp
|
@ -116,10 +116,80 @@ int currentRefreshRate()
|
|||
|
||||
Options::Options(QObject *parent)
|
||||
: QObject(parent)
|
||||
, electric_borders(0)
|
||||
, electric_border_delay(0)
|
||||
, m_focusPolicy(Options::defaultFocusPolicy())
|
||||
, m_nextFocusPrefersMouse(Options::defaultNextFocusPrefersMouse())
|
||||
, m_clickRaise(Options::defaultClickRaise())
|
||||
, m_autoRaise(Options::defaultAutoRaise())
|
||||
, m_autoRaiseInterval(Options::defaultAutoRaiseInterval())
|
||||
, m_delayFocusInterval(Options::defaultDelayFocusInterval())
|
||||
, m_shadeHover(Options::defaultShadeHover())
|
||||
, m_shadeHoverInterval(Options::defaultShadeHoverInterval())
|
||||
, m_tilingOn(Options::defaultTiling())
|
||||
, m_tilingLayout(Options::defaultTilingLayout())
|
||||
, m_tilingRaisePolicy(Options::defaultTilingRaisePolicy())
|
||||
, m_separateScreenFocus(Options::defaultSeparateScreenFocus())
|
||||
, m_activeMouseScreen(Options::defaultActiveMouseScreen())
|
||||
, m_placement(Options::defaultPlacement())
|
||||
, m_borderSnapZone(Options::defaultBorderSnapZone())
|
||||
, m_windowSnapZone(Options::defaultWindowSnapZone())
|
||||
, m_centerSnapZone(Options::defaultCenterSnapZone())
|
||||
, m_snapOnlyWhenOverlapping(Options::defaultSnapOnlyWhenOverlapping())
|
||||
, m_showDesktopIsMinimizeAll(Options::defaultShowDesktopIsMinimizeAll())
|
||||
, m_rollOverDesktops(Options::defaultRollOverDesktops())
|
||||
, m_focusStealingPreventionLevel(Options::defaultFocusStealingPreventionLevel())
|
||||
, m_legacyFullscreenSupport(Options::defaultLegacyFullscreenSupport())
|
||||
, m_killPingTimeout(Options::defaultKillPingTimeout())
|
||||
, m_hideUtilityWindowsForInactive(Options::defaultHideUtilityWindowsForInactive())
|
||||
, m_inactiveTabsSkipTaskbar(Options::defaultInactiveTabsSkipTaskbar())
|
||||
, m_autogroupSimilarWindows(Options::defaultAutogroupSimilarWindows())
|
||||
, m_autogroupInForeground(Options::defaultAutogroupInForeground())
|
||||
, m_compositingMode(Options::defaultCompositingMode())
|
||||
, m_useCompositing(Options::defaultUseCompositing())
|
||||
, m_compositingInitialized(Options::defaultCompositingInitialized())
|
||||
, m_hiddenPreviews(Options::defaultHiddenPreviews())
|
||||
, m_unredirectFullscreen(Options::defaultUnredirectFullscreen())
|
||||
, m_glSmoothScale(Options::defaultGlSmoothScale())
|
||||
, m_glVSync(Options::defaultGlVSync())
|
||||
, m_xrenderSmoothScale(Options::defaultXrenderSmoothScale())
|
||||
, m_maxFpsInterval(Options::defaultMaxFpsInterval())
|
||||
, m_refreshRate(Options::defaultRefreshRate())
|
||||
, m_glDirect(Options::defaultGlDirect())
|
||||
, m_glStrictBinding(Options::defaultGlStrictBinding())
|
||||
, OpTitlebarDblClick(Options::defaultOperationTitlebarDblClick())
|
||||
, CmdActiveTitlebar1(Options::defaultCommandActiveTitlebar1())
|
||||
, CmdActiveTitlebar2(Options::defaultCommandActiveTitlebar2())
|
||||
, CmdActiveTitlebar3(Options::defaultCommandActiveTitlebar3())
|
||||
, CmdInactiveTitlebar1(Options::defaultCommandInactiveTitlebar1())
|
||||
, CmdInactiveTitlebar2(Options::defaultCommandInactiveTitlebar2())
|
||||
, CmdInactiveTitlebar3(Options::defaultCommandInactiveTitlebar3())
|
||||
, CmdTitlebarWheel(Options::defaultCommandTitlebarWheel())
|
||||
, CmdWindow1(Options::defaultCommandWindow1())
|
||||
, CmdWindow2(Options::defaultCommandWindow2())
|
||||
, CmdWindow3(Options::defaultCommandWindow3())
|
||||
, CmdWindowWheel(Options::defaultCommandWindowWheel())
|
||||
, CmdAll1(Options::defaultCommandAll1())
|
||||
, CmdAll2(Options::defaultCommandAll2())
|
||||
, CmdAll3(Options::defaultCommandAll3())
|
||||
, CmdAllWheel(Options::defaultCommandAllWheel())
|
||||
, CmdAllModKey(Options::defaultKeyCmdAllModKey())
|
||||
, electric_border_top(Options::defaultElectricBorderTop())
|
||||
, electric_border_top_right(Options::defaultElectricBorderTopRight())
|
||||
, electric_border_right(Options::defaultElectricBorderRight())
|
||||
, electric_border_bottom_right(Options::defaultElectricBorderBottomRight())
|
||||
, electric_border_bottom(Options::defaultElectricBorderBottom())
|
||||
, electric_border_bottom_left(Options::defaultElectricBorderBottomLeft())
|
||||
, electric_border_left(Options::defaultElectricBorderLeft())
|
||||
, electric_border_top_left(Options::defaultElectricBorderTopLeft())
|
||||
, electric_borders(Options::defaultElectricBorders())
|
||||
, electric_border_delay(Options::defaultElectricBorderDelay())
|
||||
, electric_border_cooldown(Options::defaultElectricBorderCooldown())
|
||||
, electric_border_pushback_pixels(Options::defaultElectricBorderPushbackPixels())
|
||||
, electric_border_maximize(Options::defaultElectricBorderMaximize())
|
||||
, electric_border_tiling(Options::defaultElectricBorderTiling())
|
||||
, borderless_maximized_windows(Options::defaultBorderlessMaximizedWindows())
|
||||
, show_geometry_tip(Options::defaultShowGeometryTip())
|
||||
, animationSpeed(Options::defaultAnimationSpeed())
|
||||
{
|
||||
m_compositingInitialized = false;
|
||||
updateSettings();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue