Changeset View
Changeset View
Standalone View
Standalone View
options.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 88 | Options::Options(QObject *parent) | |||
---|---|---|---|---|---|
99 | , m_separateScreenFocus(false) | 99 | , m_separateScreenFocus(false) | ||
100 | , m_placement(Placement::NoPlacement) | 100 | , m_placement(Placement::NoPlacement) | ||
101 | , m_borderSnapZone(0) | 101 | , m_borderSnapZone(0) | ||
102 | , m_windowSnapZone(0) | 102 | , m_windowSnapZone(0) | ||
103 | , m_centerSnapZone(0) | 103 | , m_centerSnapZone(0) | ||
104 | , m_snapOnlyWhenOverlapping(false) | 104 | , m_snapOnlyWhenOverlapping(false) | ||
105 | , m_rollOverDesktops(false) | 105 | , m_rollOverDesktops(false) | ||
106 | , m_focusStealingPreventionLevel(0) | 106 | , m_focusStealingPreventionLevel(0) | ||
107 | , m_legacyFullscreenSupport(false) | | |||
108 | , m_killPingTimeout(0) | 107 | , m_killPingTimeout(0) | ||
109 | , m_hideUtilityWindowsForInactive(false) | 108 | , m_hideUtilityWindowsForInactive(false) | ||
110 | , m_inactiveTabsSkipTaskbar(false) | 109 | , m_inactiveTabsSkipTaskbar(false) | ||
111 | , m_autogroupSimilarWindows(false) | 110 | , m_autogroupSimilarWindows(false) | ||
112 | , m_autogroupInForeground(false) | 111 | , m_autogroupInForeground(false) | ||
113 | , m_compositingMode(Options::defaultCompositingMode()) | 112 | , m_compositingMode(Options::defaultCompositingMode()) | ||
114 | , m_useCompositing(Options::defaultUseCompositing()) | 113 | , m_useCompositing(Options::defaultUseCompositing()) | ||
115 | , m_compositingInitialized(Options::defaultCompositingInitialized()) | 114 | , m_compositingInitialized(Options::defaultCompositingInitialized()) | ||
▲ Show 20 Lines • Show All 206 Lines • ▼ Show 20 Line(s) | 318 | { | |||
322 | } | 321 | } | ||
323 | if (m_focusStealingPreventionLevel == focusStealingPreventionLevel) { | 322 | if (m_focusStealingPreventionLevel == focusStealingPreventionLevel) { | ||
324 | return; | 323 | return; | ||
325 | } | 324 | } | ||
326 | m_focusStealingPreventionLevel = qMax(0, qMin(4, focusStealingPreventionLevel)); | 325 | m_focusStealingPreventionLevel = qMax(0, qMin(4, focusStealingPreventionLevel)); | ||
327 | emit focusStealingPreventionLevelChanged(); | 326 | emit focusStealingPreventionLevelChanged(); | ||
328 | } | 327 | } | ||
329 | 328 | | |||
330 | void Options::setLegacyFullscreenSupport(bool legacyFullscreenSupport) | | |||
331 | { | | |||
332 | if (m_legacyFullscreenSupport == legacyFullscreenSupport) { | | |||
333 | return; | | |||
334 | } | | |||
335 | m_legacyFullscreenSupport = legacyFullscreenSupport; | | |||
336 | emit legacyFullscreenSupportChanged(); | | |||
337 | } | | |||
338 | | ||||
339 | void Options::setOperationTitlebarDblClick(WindowOperation operationTitlebarDblClick) | 329 | void Options::setOperationTitlebarDblClick(WindowOperation operationTitlebarDblClick) | ||
340 | { | 330 | { | ||
341 | if (OpTitlebarDblClick == operationTitlebarDblClick) { | 331 | if (OpTitlebarDblClick == operationTitlebarDblClick) { | ||
342 | return; | 332 | return; | ||
343 | } | 333 | } | ||
344 | OpTitlebarDblClick = operationTitlebarDblClick; | 334 | OpTitlebarDblClick = operationTitlebarDblClick; | ||
345 | emit operationTitlebarDblClickChanged(); | 335 | emit operationTitlebarDblClickChanged(); | ||
346 | } | 336 | } | ||
▲ Show 20 Lines • Show All 506 Lines • ▼ Show 20 Line(s) | |||||
853 | void Options::syncFromKcfgc() | 843 | void Options::syncFromKcfgc() | ||
854 | { | 844 | { | ||
855 | setShowGeometryTip(m_settings->geometryTip()); | 845 | setShowGeometryTip(m_settings->geometryTip()); | ||
856 | setCondensedTitle(m_settings->condensedTitle()); | 846 | setCondensedTitle(m_settings->condensedTitle()); | ||
857 | setFocusPolicy(m_settings->focusPolicy()); | 847 | setFocusPolicy(m_settings->focusPolicy()); | ||
858 | setNextFocusPrefersMouse(m_settings->nextFocusPrefersMouse()); | 848 | setNextFocusPrefersMouse(m_settings->nextFocusPrefersMouse()); | ||
859 | setSeparateScreenFocus(m_settings->separateScreenFocus()); | 849 | setSeparateScreenFocus(m_settings->separateScreenFocus()); | ||
860 | setRollOverDesktops(m_settings->rollOverDesktops()); | 850 | setRollOverDesktops(m_settings->rollOverDesktops()); | ||
861 | setLegacyFullscreenSupport(m_settings->legacyFullscreenSupport()); | | |||
862 | setFocusStealingPreventionLevel(m_settings->focusStealingPreventionLevel()); | 851 | setFocusStealingPreventionLevel(m_settings->focusStealingPreventionLevel()); | ||
863 | 852 | | |||
864 | #ifdef KWIN_BUILD_DECORATIONS | 853 | #ifdef KWIN_BUILD_DECORATIONS | ||
865 | setPlacement(m_settings->placement()); | 854 | setPlacement(m_settings->placement()); | ||
866 | #else | 855 | #else | ||
867 | setPlacement(Placement::Maximizing); | 856 | setPlacement(Placement::Maximizing); | ||
868 | #endif | 857 | #endif | ||
869 | 858 | | |||
▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines |