Changeset View
Changeset View
Standalone View
Standalone View
options.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
52 | Q_ENUMS(GlSwapStrategy) | 52 | Q_ENUMS(GlSwapStrategy) | ||
53 | Q_ENUMS(MouseCommand) | 53 | Q_ENUMS(MouseCommand) | ||
54 | Q_ENUMS(MouseWheelCommand) | 54 | Q_ENUMS(MouseWheelCommand) | ||
55 | Q_ENUMS(WindowOperation) | 55 | Q_ENUMS(WindowOperation) | ||
56 | 56 | | |||
57 | Q_PROPERTY(FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy NOTIFY focusPolicyChanged) | 57 | Q_PROPERTY(FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy NOTIFY focusPolicyChanged) | ||
58 | Q_PROPERTY(bool nextFocusPrefersMouse READ isNextFocusPrefersMouse WRITE setNextFocusPrefersMouse NOTIFY nextFocusPrefersMouseChanged) | 58 | Q_PROPERTY(bool nextFocusPrefersMouse READ isNextFocusPrefersMouse WRITE setNextFocusPrefersMouse NOTIFY nextFocusPrefersMouseChanged) | ||
59 | /** | 59 | /** | ||
60 | Whether clicking on a window raises it in FocusFollowsMouse | 60 | * Whether clicking on a window raises it in FocusFollowsMouse | ||
61 | mode or not. | 61 | * mode or not. | ||
62 | */ | 62 | **/ | ||
63 | Q_PROPERTY(bool clickRaise READ isClickRaise WRITE setClickRaise NOTIFY clickRaiseChanged) | 63 | Q_PROPERTY(bool clickRaise READ isClickRaise WRITE setClickRaise NOTIFY clickRaiseChanged) | ||
64 | /** | 64 | /** | ||
65 | whether autoraise is enabled FocusFollowsMouse mode or not. | 65 | * Whether autoraise is enabled FocusFollowsMouse mode or not. | ||
66 | */ | 66 | **/ | ||
67 | Q_PROPERTY(bool autoRaise READ isAutoRaise WRITE setAutoRaise NOTIFY autoRaiseChanged) | 67 | Q_PROPERTY(bool autoRaise READ isAutoRaise WRITE setAutoRaise NOTIFY autoRaiseChanged) | ||
68 | /** | 68 | /** | ||
69 | autoraise interval | 69 | * Autoraise interval. | ||
70 | */ | 70 | **/ | ||
71 | Q_PROPERTY(int autoRaiseInterval READ autoRaiseInterval WRITE setAutoRaiseInterval NOTIFY autoRaiseIntervalChanged) | 71 | Q_PROPERTY(int autoRaiseInterval READ autoRaiseInterval WRITE setAutoRaiseInterval NOTIFY autoRaiseIntervalChanged) | ||
72 | /** | 72 | /** | ||
73 | delayed focus interval | 73 | * Delayed focus interval. | ||
74 | */ | 74 | **/ | ||
75 | Q_PROPERTY(int delayFocusInterval READ delayFocusInterval WRITE setDelayFocusInterval NOTIFY delayFocusIntervalChanged) | 75 | Q_PROPERTY(int delayFocusInterval READ delayFocusInterval WRITE setDelayFocusInterval NOTIFY delayFocusIntervalChanged) | ||
76 | /** | 76 | /** | ||
77 | Whether shade hover is enabled or not | 77 | * Whether shade hover is enabled or not. | ||
78 | */ | 78 | **/ | ||
79 | Q_PROPERTY(bool shadeHover READ isShadeHover WRITE setShadeHover NOTIFY shadeHoverChanged) | 79 | Q_PROPERTY(bool shadeHover READ isShadeHover WRITE setShadeHover NOTIFY shadeHoverChanged) | ||
80 | /** | 80 | /** | ||
81 | shade hover interval | 81 | * Shade hover interval. | ||
82 | */ | 82 | **/ | ||
83 | Q_PROPERTY(int shadeHoverInterval READ shadeHoverInterval WRITE setShadeHoverInterval NOTIFY shadeHoverIntervalChanged) | 83 | Q_PROPERTY(int shadeHoverInterval READ shadeHoverInterval WRITE setShadeHoverInterval NOTIFY shadeHoverIntervalChanged) | ||
84 | /** | 84 | /** | ||
85 | * whether to see Xinerama screens separately for focus (in Alt+Tab, when activating next client) | 85 | * Whether to see Xinerama screens separately for focus (in Alt+Tab, when activating next client) | ||
86 | **/ | 86 | **/ | ||
87 | Q_PROPERTY(bool separateScreenFocus READ isSeparateScreenFocus WRITE setSeparateScreenFocus NOTIFY separateScreenFocusChanged) | 87 | Q_PROPERTY(bool separateScreenFocus READ isSeparateScreenFocus WRITE setSeparateScreenFocus NOTIFY separateScreenFocusChanged) | ||
88 | Q_PROPERTY(int placement READ placement WRITE setPlacement NOTIFY placementChanged) | 88 | Q_PROPERTY(int placement READ placement WRITE setPlacement NOTIFY placementChanged) | ||
89 | Q_PROPERTY(bool focusPolicyIsReasonable READ focusPolicyIsReasonable NOTIFY focusPolicyIsResonableChanged) | 89 | Q_PROPERTY(bool focusPolicyIsReasonable READ focusPolicyIsReasonable NOTIFY focusPolicyIsResonableChanged) | ||
90 | /** | 90 | /** | ||
91 | * the size of the zone that triggers snapping on desktop borders | 91 | * The size of the zone that triggers snapping on desktop borders. | ||
92 | */ | 92 | **/ | ||
93 | Q_PROPERTY(int borderSnapZone READ borderSnapZone WRITE setBorderSnapZone NOTIFY borderSnapZoneChanged) | 93 | Q_PROPERTY(int borderSnapZone READ borderSnapZone WRITE setBorderSnapZone NOTIFY borderSnapZoneChanged) | ||
94 | /** | 94 | /** | ||
95 | * the size of the zone that triggers snapping with other windows | 95 | * The size of the zone that triggers snapping with other windows. | ||
96 | */ | 96 | **/ | ||
97 | Q_PROPERTY(int windowSnapZone READ windowSnapZone WRITE setWindowSnapZone NOTIFY windowSnapZoneChanged) | 97 | Q_PROPERTY(int windowSnapZone READ windowSnapZone WRITE setWindowSnapZone NOTIFY windowSnapZoneChanged) | ||
98 | /** | 98 | /** | ||
99 | * the size of the zone that triggers snapping on the screen center | 99 | * The size of the zone that triggers snapping on the screen center. | ||
100 | */ | 100 | **/ | ||
101 | Q_PROPERTY(int centerSnapZone READ centerSnapZone WRITE setCenterSnapZone NOTIFY centerSnapZoneChanged) | 101 | Q_PROPERTY(int centerSnapZone READ centerSnapZone WRITE setCenterSnapZone NOTIFY centerSnapZoneChanged) | ||
102 | /** | 102 | /** | ||
103 | * snap only when windows will overlap | 103 | * Snap only when windows will overlap. | ||
104 | */ | 104 | **/ | ||
105 | Q_PROPERTY(bool snapOnlyWhenOverlapping READ isSnapOnlyWhenOverlapping WRITE setSnapOnlyWhenOverlapping NOTIFY snapOnlyWhenOverlappingChanged) | 105 | Q_PROPERTY(bool snapOnlyWhenOverlapping READ isSnapOnlyWhenOverlapping WRITE setSnapOnlyWhenOverlapping NOTIFY snapOnlyWhenOverlappingChanged) | ||
106 | /** | 106 | /** | ||
107 | * whether or not we roll over to the other edge when switching desktops past the edge | 107 | * Whether or not we roll over to the other edge when switching desktops past the edge. | ||
108 | */ | 108 | **/ | ||
109 | Q_PROPERTY(bool rollOverDesktops READ isRollOverDesktops WRITE setRollOverDesktops NOTIFY rollOverDesktopsChanged) | 109 | Q_PROPERTY(bool rollOverDesktops READ isRollOverDesktops WRITE setRollOverDesktops NOTIFY rollOverDesktopsChanged) | ||
110 | /** | 110 | /** | ||
111 | * 0 - 4 , see Workspace::allowClientActivation() | 111 | * 0 - 4 , see Workspace::allowClientActivation() | ||
112 | **/ | 112 | **/ | ||
113 | Q_PROPERTY(int focusStealingPreventionLevel READ focusStealingPreventionLevel WRITE setFocusStealingPreventionLevel NOTIFY focusStealingPreventionLevelChanged) | 113 | Q_PROPERTY(int focusStealingPreventionLevel READ focusStealingPreventionLevel WRITE setFocusStealingPreventionLevel NOTIFY focusStealingPreventionLevelChanged) | ||
114 | /** | 114 | /** | ||
115 | * support legacy fullscreen windows hack: borderless non-netwm windows with screen geometry | 115 | * Support legacy fullscreen windows hack: borderless non-netwm windows with screen geometry. | ||
116 | */ | 116 | **/ | ||
117 | Q_PROPERTY(bool legacyFullscreenSupport READ isLegacyFullscreenSupport WRITE setLegacyFullscreenSupport NOTIFY legacyFullscreenSupportChanged) | 117 | Q_PROPERTY(bool legacyFullscreenSupport READ isLegacyFullscreenSupport WRITE setLegacyFullscreenSupport NOTIFY legacyFullscreenSupportChanged) | ||
118 | Q_PROPERTY(KWin::Options::WindowOperation operationTitlebarDblClick READ operationTitlebarDblClick WRITE setOperationTitlebarDblClick NOTIFY operationTitlebarDblClickChanged) | 118 | Q_PROPERTY(KWin::Options::WindowOperation operationTitlebarDblClick READ operationTitlebarDblClick WRITE setOperationTitlebarDblClick NOTIFY operationTitlebarDblClickChanged) | ||
119 | Q_PROPERTY(KWin::Options::WindowOperation operationMaxButtonLeftClick READ operationMaxButtonLeftClick WRITE setOperationMaxButtonLeftClick NOTIFY operationMaxButtonLeftClickChanged) | 119 | Q_PROPERTY(KWin::Options::WindowOperation operationMaxButtonLeftClick READ operationMaxButtonLeftClick WRITE setOperationMaxButtonLeftClick NOTIFY operationMaxButtonLeftClickChanged) | ||
120 | Q_PROPERTY(KWin::Options::WindowOperation operationMaxButtonMiddleClick READ operationMaxButtonMiddleClick WRITE setOperationMaxButtonMiddleClick NOTIFY operationMaxButtonMiddleClickChanged) | 120 | Q_PROPERTY(KWin::Options::WindowOperation operationMaxButtonMiddleClick READ operationMaxButtonMiddleClick WRITE setOperationMaxButtonMiddleClick NOTIFY operationMaxButtonMiddleClickChanged) | ||
121 | Q_PROPERTY(KWin::Options::WindowOperation operationMaxButtonRightClick READ operationMaxButtonRightClick WRITE setOperationMaxButtonRightClick NOTIFY operationMaxButtonRightClickChanged) | 121 | Q_PROPERTY(KWin::Options::WindowOperation operationMaxButtonRightClick READ operationMaxButtonRightClick WRITE setOperationMaxButtonRightClick NOTIFY operationMaxButtonRightClickChanged) | ||
122 | Q_PROPERTY(MouseCommand commandActiveTitlebar1 READ commandActiveTitlebar1 WRITE setCommandActiveTitlebar1 NOTIFY commandActiveTitlebar1Changed) | 122 | Q_PROPERTY(MouseCommand commandActiveTitlebar1 READ commandActiveTitlebar1 WRITE setCommandActiveTitlebar1 NOTIFY commandActiveTitlebar1Changed) | ||
123 | Q_PROPERTY(MouseCommand commandActiveTitlebar2 READ commandActiveTitlebar2 WRITE setCommandActiveTitlebar2 NOTIFY commandActiveTitlebar2Changed) | 123 | Q_PROPERTY(MouseCommand commandActiveTitlebar2 READ commandActiveTitlebar2 WRITE setCommandActiveTitlebar2 NOTIFY commandActiveTitlebar2Changed) | ||
124 | Q_PROPERTY(MouseCommand commandActiveTitlebar3 READ commandActiveTitlebar3 WRITE setCommandActiveTitlebar3 NOTIFY commandActiveTitlebar3Changed) | 124 | Q_PROPERTY(MouseCommand commandActiveTitlebar3 READ commandActiveTitlebar3 WRITE setCommandActiveTitlebar3 NOTIFY commandActiveTitlebar3Changed) | ||
125 | Q_PROPERTY(MouseCommand commandInactiveTitlebar1 READ commandInactiveTitlebar1 WRITE setCommandInactiveTitlebar1 NOTIFY commandInactiveTitlebar1Changed) | 125 | Q_PROPERTY(MouseCommand commandInactiveTitlebar1 READ commandInactiveTitlebar1 WRITE setCommandInactiveTitlebar1 NOTIFY commandInactiveTitlebar1Changed) | ||
126 | Q_PROPERTY(MouseCommand commandInactiveTitlebar2 READ commandInactiveTitlebar2 WRITE setCommandInactiveTitlebar2 NOTIFY commandInactiveTitlebar2Changed) | 126 | Q_PROPERTY(MouseCommand commandInactiveTitlebar2 READ commandInactiveTitlebar2 WRITE setCommandInactiveTitlebar2 NOTIFY commandInactiveTitlebar2Changed) | ||
127 | Q_PROPERTY(MouseCommand commandInactiveTitlebar3 READ commandInactiveTitlebar3 WRITE setCommandInactiveTitlebar3 NOTIFY commandInactiveTitlebar3Changed) | 127 | Q_PROPERTY(MouseCommand commandInactiveTitlebar3 READ commandInactiveTitlebar3 WRITE setCommandInactiveTitlebar3 NOTIFY commandInactiveTitlebar3Changed) | ||
128 | Q_PROPERTY(MouseCommand commandWindow1 READ commandWindow1 WRITE setCommandWindow1 NOTIFY commandWindow1Changed) | 128 | Q_PROPERTY(MouseCommand commandWindow1 READ commandWindow1 WRITE setCommandWindow1 NOTIFY commandWindow1Changed) | ||
129 | Q_PROPERTY(MouseCommand commandWindow2 READ commandWindow2 WRITE setCommandWindow2 NOTIFY commandWindow2Changed) | 129 | Q_PROPERTY(MouseCommand commandWindow2 READ commandWindow2 WRITE setCommandWindow2 NOTIFY commandWindow2Changed) | ||
130 | Q_PROPERTY(MouseCommand commandWindow3 READ commandWindow3 WRITE setCommandWindow3 NOTIFY commandWindow3Changed) | 130 | Q_PROPERTY(MouseCommand commandWindow3 READ commandWindow3 WRITE setCommandWindow3 NOTIFY commandWindow3Changed) | ||
131 | Q_PROPERTY(MouseCommand commandWindowWheel READ commandWindowWheel WRITE setCommandWindowWheel NOTIFY commandWindowWheelChanged) | 131 | Q_PROPERTY(MouseCommand commandWindowWheel READ commandWindowWheel WRITE setCommandWindowWheel NOTIFY commandWindowWheelChanged) | ||
132 | Q_PROPERTY(MouseCommand commandAll1 READ commandAll1 WRITE setCommandAll1 NOTIFY commandAll1Changed) | 132 | Q_PROPERTY(MouseCommand commandAll1 READ commandAll1 WRITE setCommandAll1 NOTIFY commandAll1Changed) | ||
133 | Q_PROPERTY(MouseCommand commandAll2 READ commandAll2 WRITE setCommandAll2 NOTIFY commandAll2Changed) | 133 | Q_PROPERTY(MouseCommand commandAll2 READ commandAll2 WRITE setCommandAll2 NOTIFY commandAll2Changed) | ||
134 | Q_PROPERTY(MouseCommand commandAll3 READ commandAll3 WRITE setCommandAll3 NOTIFY commandAll3Changed) | 134 | Q_PROPERTY(MouseCommand commandAll3 READ commandAll3 WRITE setCommandAll3 NOTIFY commandAll3Changed) | ||
135 | Q_PROPERTY(uint keyCmdAllModKey READ keyCmdAllModKey WRITE setKeyCmdAllModKey NOTIFY keyCmdAllModKeyChanged) | 135 | Q_PROPERTY(uint keyCmdAllModKey READ keyCmdAllModKey WRITE setKeyCmdAllModKey NOTIFY keyCmdAllModKeyChanged) | ||
136 | /** | 136 | /** | ||
137 | * whether the Geometry Tip should be shown during a window move/resize. | 137 | * Whether the Geometry Tip should be shown during a window move/resize. | ||
138 | */ | 138 | **/ | ||
139 | Q_PROPERTY(bool showGeometryTip READ showGeometryTip WRITE setShowGeometryTip NOTIFY showGeometryTipChanged) | 139 | Q_PROPERTY(bool showGeometryTip READ showGeometryTip WRITE setShowGeometryTip NOTIFY showGeometryTipChanged) | ||
140 | /** | 140 | /** | ||
141 | * whether the visible name should be condensed | 141 | * Whether the visible name should be condensed. | ||
142 | */ | 142 | **/ | ||
143 | Q_PROPERTY(bool condensedTitle READ condensedTitle WRITE setCondensedTitle NOTIFY condensedTitleChanged) | 143 | Q_PROPERTY(bool condensedTitle READ condensedTitle WRITE setCondensedTitle NOTIFY condensedTitleChanged) | ||
144 | /** | 144 | /** | ||
145 | * Whether a window gets maximized when it reaches top screen edge while being moved. | 145 | * Whether a window gets maximized when it reaches top screen edge while being moved. | ||
146 | */ | 146 | **/ | ||
147 | Q_PROPERTY(bool electricBorderMaximize READ electricBorderMaximize WRITE setElectricBorderMaximize NOTIFY electricBorderMaximizeChanged) | 147 | Q_PROPERTY(bool electricBorderMaximize READ electricBorderMaximize WRITE setElectricBorderMaximize NOTIFY electricBorderMaximizeChanged) | ||
148 | /** | 148 | /** | ||
149 | * Whether a window is tiled to half screen when reaching left or right screen edge while been moved | 149 | * Whether a window is tiled to half screen when reaching left or right screen edge while been moved. | ||
150 | */ | 150 | **/ | ||
151 | Q_PROPERTY(bool electricBorderTiling READ electricBorderTiling WRITE setElectricBorderTiling NOTIFY electricBorderTilingChanged) | 151 | Q_PROPERTY(bool electricBorderTiling READ electricBorderTiling WRITE setElectricBorderTiling NOTIFY electricBorderTilingChanged) | ||
152 | /** | 152 | /** | ||
153 | * Whether a window is tiled to half screen when reaching left or right screen edge while been moved | 153 | * Whether a window is tiled to half screen when reaching left or right screen edge while been moved. | ||
154 | */ | 154 | **/ | ||
155 | Q_PROPERTY(float electricBorderCornerRatio READ electricBorderCornerRatio WRITE setElectricBorderCornerRatio NOTIFY electricBorderCornerRatioChanged) | 155 | Q_PROPERTY(float electricBorderCornerRatio READ electricBorderCornerRatio WRITE setElectricBorderCornerRatio NOTIFY electricBorderCornerRatioChanged) | ||
156 | Q_PROPERTY(bool borderlessMaximizedWindows READ borderlessMaximizedWindows WRITE setBorderlessMaximizedWindows NOTIFY borderlessMaximizedWindowsChanged) | 156 | Q_PROPERTY(bool borderlessMaximizedWindows READ borderlessMaximizedWindows WRITE setBorderlessMaximizedWindows NOTIFY borderlessMaximizedWindowsChanged) | ||
157 | /** | 157 | /** | ||
158 | * timeout before non-responding application will be killed after attempt to close | 158 | * timeout before non-responding application will be killed after attempt to close. | ||
159 | **/ | 159 | **/ | ||
160 | Q_PROPERTY(int killPingTimeout READ killPingTimeout WRITE setKillPingTimeout NOTIFY killPingTimeoutChanged) | 160 | Q_PROPERTY(int killPingTimeout READ killPingTimeout WRITE setKillPingTimeout NOTIFY killPingTimeoutChanged) | ||
161 | /** | 161 | /** | ||
162 | * Whether to hide utility windows for inactive applications. | 162 | * Whether to hide utility windows for inactive applications. | ||
163 | **/ | 163 | **/ | ||
164 | Q_PROPERTY(bool hideUtilityWindowsForInactive READ isHideUtilityWindowsForInactive WRITE setHideUtilityWindowsForInactive NOTIFY hideUtilityWindowsForInactiveChanged) | 164 | Q_PROPERTY(bool hideUtilityWindowsForInactive READ isHideUtilityWindowsForInactive WRITE setHideUtilityWindowsForInactive NOTIFY hideUtilityWindowsForInactiveChanged) | ||
165 | Q_PROPERTY(bool inactiveTabsSkipTaskbar READ isInactiveTabsSkipTaskbar WRITE setInactiveTabsSkipTaskbar NOTIFY inactiveTabsSkipTaskbarChanged) | 165 | Q_PROPERTY(bool inactiveTabsSkipTaskbar READ isInactiveTabsSkipTaskbar WRITE setInactiveTabsSkipTaskbar NOTIFY inactiveTabsSkipTaskbarChanged) | ||
166 | Q_PROPERTY(bool autogroupSimilarWindows READ isAutogroupSimilarWindows WRITE setAutogroupSimilarWindows NOTIFY autogroupSimilarWindowsChanged) | 166 | Q_PROPERTY(bool autogroupSimilarWindows READ isAutogroupSimilarWindows WRITE setAutogroupSimilarWindows NOTIFY autogroupSimilarWindowsChanged) | ||
Show All 25 Lines | |||||
192 | Q_PROPERTY(bool windowsBlockCompositing READ windowsBlockCompositing WRITE setWindowsBlockCompositing NOTIFY windowsBlockCompositingChanged) | 192 | Q_PROPERTY(bool windowsBlockCompositing READ windowsBlockCompositing WRITE setWindowsBlockCompositing NOTIFY windowsBlockCompositingChanged) | ||
193 | public: | 193 | public: | ||
194 | 194 | | |||
195 | explicit Options(QObject *parent = NULL); | 195 | explicit Options(QObject *parent = NULL); | ||
196 | ~Options(); | 196 | ~Options(); | ||
197 | 197 | | |||
198 | void updateSettings(); | 198 | void updateSettings(); | ||
199 | 199 | | |||
200 | /*! | 200 | /** | ||
201 | Different focus policies: | 201 | * This enum type is used to specify the focus policy. | ||
202 | <ul> | 202 | * | ||
203 | 203 | * Note that FocusUnderMouse and FocusStrictlyUnderMouse are not | |||
204 | <li>ClickToFocus - Clicking into a window activates it. This is | 204 | * particulary useful. They are only provided for old-fashined | ||
205 | also the default. | 205 | * die-hard UNIX people ;-) | ||
206 | 206 | **/ | |||
207 | <li>FocusFollowsMouse - Moving the mouse pointer actively onto a | 207 | enum FocusPolicy { | ||
208 | normal window activates it. For convenience, the desktop and | 208 | /** | ||
209 | windows on the dock are excluded. They require clicking. | 209 | * Clicking into a window activates it. This is also the default. | ||
210 | 210 | **/ | |||
211 | <li>FocusUnderMouse - The window that happens to be under the | 211 | ClickToFocus, | ||
212 | mouse pointer becomes active. The invariant is: no window can | 212 | /** | ||
213 | have focus that is not under the mouse. This also means that | 213 | * Moving the mouse pointer actively onto a normal window activates it. | ||
214 | Alt-Tab won't work properly and popup dialogs are usually | 214 | * For convenience, the desktop and windows on the dock are excluded. | ||
215 | unsable with the keyboard. Note that the desktop and windows on | 215 | * They require clicking. | ||
216 | the dock are excluded for convenience. They get focus only when | 216 | **/ | ||
217 | clicking on it. | 217 | FocusFollowsMouse, | ||
218 | 218 | /** | |||
219 | <li>FocusStrictlyUnderMouse - this is even worse than | 219 | * The window that happens to be under the mouse pointer becomes active. | ||
220 | FocusUnderMouse. Only the window under the mouse pointer is | 220 | * The invariant is: no window can have focus that is not under the mouse. | ||
221 | active. If the mouse points nowhere, nothing has the focus. If | 221 | * This also means that Alt-Tab won't work properly and popup dialogs are | ||
222 | the mouse points onto the desktop, the desktop has focus. The | 222 | * usually unsable with the keyboard. Note that the desktop and windows on | ||
223 | same holds for windows on the dock. | 223 | * the dock are excluded for convenience. They get focus only when clicking | ||
224 | 224 | * on it. | |||
225 | Note that FocusUnderMouse and FocusStrictlyUnderMouse are not | 225 | **/ | ||
226 | particulary useful. They are only provided for old-fashined | 226 | FocusUnderMouse, | ||
227 | die-hard UNIX people ;-) | 227 | /** | ||
228 | 228 | * This is even worse than FocusUnderMouse. Only the window under the mouse | |||
229 | </ul> | 229 | * pointer is active. If the mouse points nowhere, nothing has the focus. If | ||
230 | */ | 230 | * the mouse points onto the desktop, the desktop has focus. The same holds | ||
231 | enum FocusPolicy { ClickToFocus, FocusFollowsMouse, FocusUnderMouse, FocusStrictlyUnderMouse }; | 231 | * for windows on the dock. | ||
232 | **/ | ||||
233 | FocusStrictlyUnderMouse | ||||
234 | }; | ||||
235 | | ||||
232 | FocusPolicy focusPolicy() const { | 236 | FocusPolicy focusPolicy() const { | ||
233 | return m_focusPolicy; | 237 | return m_focusPolicy; | ||
234 | } | 238 | } | ||
235 | bool isNextFocusPrefersMouse() const { | 239 | bool isNextFocusPrefersMouse() const { | ||
236 | return m_nextFocusPrefersMouse; | 240 | return m_nextFocusPrefersMouse; | ||
237 | } | 241 | } | ||
238 | 242 | | |||
239 | /** | 243 | /** | ||
240 | Whether clicking on a window raises it in FocusFollowsMouse | 244 | * Whether clicking on a window raises it in FocusFollowsMouse | ||
241 | mode or not. | 245 | * mode or not. | ||
242 | */ | 246 | **/ | ||
243 | bool isClickRaise() const { | 247 | bool isClickRaise() const { | ||
244 | return m_clickRaise; | 248 | return m_clickRaise; | ||
245 | } | 249 | } | ||
246 | 250 | | |||
247 | /** | 251 | /** | ||
248 | whether autoraise is enabled FocusFollowsMouse mode or not. | 252 | * Whether autoraise is enabled FocusFollowsMouse mode or not. | ||
249 | */ | 253 | **/ | ||
250 | bool isAutoRaise() const { | 254 | bool isAutoRaise() const { | ||
251 | return m_autoRaise; | 255 | return m_autoRaise; | ||
252 | } | 256 | } | ||
253 | 257 | | |||
254 | /** | 258 | /** | ||
255 | autoraise interval | 259 | * Autoraise interval | ||
256 | */ | 260 | **/ | ||
257 | int autoRaiseInterval() const { | 261 | int autoRaiseInterval() const { | ||
258 | return m_autoRaiseInterval; | 262 | return m_autoRaiseInterval; | ||
259 | } | 263 | } | ||
260 | 264 | | |||
261 | /** | 265 | /** | ||
262 | delayed focus interval | 266 | * Delayed focus interval. | ||
263 | */ | 267 | **/ | ||
264 | int delayFocusInterval() const { | 268 | int delayFocusInterval() const { | ||
265 | return m_delayFocusInterval; | 269 | return m_delayFocusInterval; | ||
266 | } | 270 | } | ||
267 | 271 | | |||
268 | /** | 272 | /** | ||
269 | Whether shade hover is enabled or not | 273 | * Whether shade hover is enabled or not. | ||
270 | */ | 274 | **/ | ||
271 | bool isShadeHover() const { | 275 | bool isShadeHover() const { | ||
272 | return m_shadeHover; | 276 | return m_shadeHover; | ||
273 | } | 277 | } | ||
274 | 278 | | |||
275 | /** | 279 | /** | ||
276 | shade hover interval | 280 | * Shade hover interval. | ||
277 | */ | 281 | **/ | ||
278 | int shadeHoverInterval() { | 282 | int shadeHoverInterval() { | ||
279 | return m_shadeHoverInterval; | 283 | return m_shadeHoverInterval; | ||
280 | } | 284 | } | ||
281 | 285 | | |||
282 | // whether to see Xinerama screens separately for focus (in Alt+Tab, when activating next client) | 286 | /** | ||
287 | * Whether to see Xinerama screens separately for focus (in Alt+Tab, when activating next client) | ||||
288 | **/ | ||||
283 | bool isSeparateScreenFocus() const { | 289 | bool isSeparateScreenFocus() const { | ||
284 | return m_separateScreenFocus; | 290 | return m_separateScreenFocus; | ||
285 | } | 291 | } | ||
286 | 292 | | |||
287 | Placement::Policy placement() const { | 293 | Placement::Policy placement() const { | ||
288 | return m_placement; | 294 | return m_placement; | ||
289 | } | 295 | } | ||
290 | 296 | | |||
291 | bool focusPolicyIsReasonable() { | 297 | bool focusPolicyIsReasonable() { | ||
292 | return m_focusPolicy == ClickToFocus || m_focusPolicy == FocusFollowsMouse; | 298 | return m_focusPolicy == ClickToFocus || m_focusPolicy == FocusFollowsMouse; | ||
293 | } | 299 | } | ||
294 | 300 | | |||
295 | /** | 301 | /** | ||
296 | * the size of the zone that triggers snapping on desktop borders | 302 | * The size of the zone that triggers snapping on desktop borders. | ||
297 | */ | 303 | **/ | ||
298 | int borderSnapZone() const { | 304 | int borderSnapZone() const { | ||
299 | return m_borderSnapZone; | 305 | return m_borderSnapZone; | ||
300 | } | 306 | } | ||
301 | 307 | | |||
302 | /** | 308 | /** | ||
303 | * the size of the zone that triggers snapping with other windows | 309 | * The size of the zone that triggers snapping with other windows. | ||
304 | */ | 310 | **/ | ||
305 | int windowSnapZone() const { | 311 | int windowSnapZone() const { | ||
306 | return m_windowSnapZone; | 312 | return m_windowSnapZone; | ||
307 | } | 313 | } | ||
308 | 314 | | |||
309 | /** | 315 | /** | ||
310 | * the size of the zone that triggers snapping on the screen center | 316 | * The size of the zone that triggers snapping on the screen center. | ||
311 | */ | 317 | **/ | ||
312 | int centerSnapZone() const { | 318 | int centerSnapZone() const { | ||
313 | return m_centerSnapZone; | 319 | return m_centerSnapZone; | ||
314 | } | 320 | } | ||
315 | 321 | | |||
316 | 322 | | |||
317 | /** | 323 | /** | ||
318 | * snap only when windows will overlap | 324 | * Snap only when windows will overlap. | ||
319 | */ | 325 | **/ | ||
320 | bool isSnapOnlyWhenOverlapping() const { | 326 | bool isSnapOnlyWhenOverlapping() const { | ||
321 | return m_snapOnlyWhenOverlapping; | 327 | return m_snapOnlyWhenOverlapping; | ||
322 | } | 328 | } | ||
323 | 329 | | |||
324 | /** | 330 | /** | ||
325 | * whether or not we roll over to the other edge when switching desktops past the edge | 331 | * Whether or not we roll over to the other edge when switching desktops past the edge. | ||
326 | */ | 332 | **/ | ||
327 | bool isRollOverDesktops() const { | 333 | bool isRollOverDesktops() const { | ||
328 | return m_rollOverDesktops; | 334 | return m_rollOverDesktops; | ||
329 | } | 335 | } | ||
330 | 336 | | |||
331 | // 0 - 4 , see Workspace::allowClientActivation() | 337 | /** | ||
338 | * Returns the focus stealing prevention level. | ||||
339 | * | ||||
340 | * @see allowClientActivation | ||||
341 | **/ | ||||
332 | int focusStealingPreventionLevel() const { | 342 | int focusStealingPreventionLevel() const { | ||
333 | return m_focusStealingPreventionLevel; | 343 | return m_focusStealingPreventionLevel; | ||
334 | } | 344 | } | ||
335 | 345 | | |||
336 | /** | 346 | /** | ||
337 | * support legacy fullscreen windows hack: borderless non-netwm windows with screen geometry | 347 | * Support legacy fullscreen windows hack: borderless non-netwm windows with screen geometry. | ||
338 | */ | 348 | **/ | ||
339 | bool isLegacyFullscreenSupport() const { | 349 | bool isLegacyFullscreenSupport() const { | ||
340 | return m_legacyFullscreenSupport; | 350 | return m_legacyFullscreenSupport; | ||
341 | } | 351 | } | ||
342 | 352 | | |||
343 | enum WindowOperation { | 353 | enum WindowOperation { | ||
344 | MaximizeOp = 5000, | 354 | MaximizeOp = 5000, | ||
345 | RestoreOp, | 355 | RestoreOp, | ||
346 | MinimizeOp, | 356 | MinimizeOp, | ||
▲ Show 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | |||||
470 | } | 480 | } | ||
471 | 481 | | |||
472 | static WindowOperation windowOperation(const QString &name, bool restricted); | 482 | static WindowOperation windowOperation(const QString &name, bool restricted); | ||
473 | static MouseCommand mouseCommand(const QString &name, bool restricted); | 483 | static MouseCommand mouseCommand(const QString &name, bool restricted); | ||
474 | static MouseWheelCommand mouseWheelCommand(const QString &name); | 484 | static MouseWheelCommand mouseWheelCommand(const QString &name); | ||
475 | 485 | | |||
476 | /** | 486 | /** | ||
477 | * @returns true if the Geometry Tip should be shown during a window move/resize. | 487 | * @returns true if the Geometry Tip should be shown during a window move/resize. | ||
478 | */ | 488 | **/ | ||
479 | bool showGeometryTip() const; | 489 | bool showGeometryTip() const; | ||
480 | 490 | | |||
481 | /** | 491 | /** | ||
482 | * returns whether the user prefers his caption clean | 492 | * Returns whether the user prefers his caption clean. | ||
483 | */ | 493 | **/ | ||
484 | bool condensedTitle() const; | 494 | bool condensedTitle() const; | ||
485 | 495 | | |||
486 | /** | 496 | /** | ||
487 | * @returns true if a window gets maximized when it reaches top screen edge | 497 | * @returns true if a window gets maximized when it reaches top screen edge | ||
488 | * while being moved. | 498 | * while being moved. | ||
489 | */ | 499 | **/ | ||
490 | bool electricBorderMaximize() const { | 500 | bool electricBorderMaximize() const { | ||
491 | return electric_border_maximize; | 501 | return electric_border_maximize; | ||
492 | } | 502 | } | ||
493 | /** | 503 | /** | ||
494 | * @returns true if window is tiled to half screen when reaching left or | 504 | * @returns true if window is tiled to half screen when reaching left or | ||
495 | * right screen edge while been moved | 505 | * right screen edge while been moved. | ||
496 | */ | 506 | **/ | ||
497 | bool electricBorderTiling() const { | 507 | bool electricBorderTiling() const { | ||
498 | return electric_border_tiling; | 508 | return electric_border_tiling; | ||
499 | } | 509 | } | ||
500 | /** | 510 | /** | ||
501 | * @returns the factor that determines the corner part of the edge (ie. 0.1 means tiny corner) | 511 | * @returns the factor that determines the corner part of the edge (ie. 0.1 means tiny corner) | ||
502 | */ | 512 | **/ | ||
503 | float electricBorderCornerRatio() const { | 513 | float electricBorderCornerRatio() const { | ||
504 | return electric_border_corner_ratio; | 514 | return electric_border_corner_ratio; | ||
505 | } | 515 | } | ||
506 | 516 | | |||
507 | bool borderlessMaximizedWindows() const { | 517 | bool borderlessMaximizedWindows() const { | ||
508 | return borderless_maximized_windows; | 518 | return borderless_maximized_windows; | ||
509 | } | 519 | } | ||
510 | 520 | | |||
511 | // timeout before non-responding application will be killed after attempt to close | 521 | /** | ||
522 | * Timeout before non-responding application will be killed after attempt to close. | ||||
523 | **/ | ||||
512 | int killPingTimeout() const { | 524 | int killPingTimeout() const { | ||
513 | return m_killPingTimeout; | 525 | return m_killPingTimeout; | ||
514 | } | 526 | } | ||
515 | 527 | | |||
516 | // Whether to hide utility windows for inactive applications. | 528 | /** | ||
529 | * Whether to hide utility windows for inactive applications. | ||||
530 | **/ | ||||
517 | bool isHideUtilityWindowsForInactive() const { | 531 | bool isHideUtilityWindowsForInactive() const { | ||
518 | return m_hideUtilityWindowsForInactive; | 532 | return m_hideUtilityWindowsForInactive; | ||
519 | } | 533 | } | ||
520 | 534 | | |||
521 | bool isInactiveTabsSkipTaskbar() const { | 535 | bool isInactiveTabsSkipTaskbar() const { | ||
522 | return m_inactiveTabsSkipTaskbar; | 536 | return m_inactiveTabsSkipTaskbar; | ||
523 | } | 537 | } | ||
524 | bool isAutogroupSimilarWindows() const { | 538 | bool isAutogroupSimilarWindows() const { | ||
525 | return m_autogroupSimilarWindows; | 539 | return m_autogroupSimilarWindows; | ||
526 | } | 540 | } | ||
527 | bool isAutogroupInForeground() const { | 541 | bool isAutogroupInForeground() const { | ||
528 | return m_autogroupInForeground; | 542 | return m_autogroupInForeground; | ||
529 | } | 543 | } | ||
530 | 544 | | |||
531 | // Desktop effects | 545 | /** | ||
546 | * Returns the animation time factor for desktop effects. | ||||
547 | **/ | ||||
532 | double animationTimeFactor() const; | 548 | double animationTimeFactor() const; | ||
533 | 549 | | |||
534 | //---------------------- | 550 | //---------------------- | ||
535 | // Compositing settings | 551 | // Compositing settings | ||
536 | void reloadCompositingSettings(bool force = false); | 552 | void reloadCompositingSettings(bool force = false); | ||
537 | CompositingType compositingMode() const { | 553 | CompositingType compositingMode() const { | ||
538 | return m_compositingMode; | 554 | return m_compositingMode; | ||
539 | } | 555 | } | ||
▲ Show 20 Lines • Show All 404 Lines • Show Last 20 Lines |