Changeset View
Changeset View
Standalone View
Standalone View
options.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
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 | /** | | |||
115 | * support legacy fullscreen windows hack: borderless non-netwm windows with screen geometry | | |||
116 | */ | | |||
117 | Q_PROPERTY(bool legacyFullscreenSupport READ isLegacyFullscreenSupport WRITE setLegacyFullscreenSupport NOTIFY legacyFullscreenSupportChanged) | | |||
118 | Q_PROPERTY(KWin::Options::WindowOperation operationTitlebarDblClick READ operationTitlebarDblClick WRITE setOperationTitlebarDblClick NOTIFY operationTitlebarDblClickChanged) | 114 | 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) | 115 | 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) | 116 | 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) | 117 | Q_PROPERTY(KWin::Options::WindowOperation operationMaxButtonRightClick READ operationMaxButtonRightClick WRITE setOperationMaxButtonRightClick NOTIFY operationMaxButtonRightClickChanged) | ||
122 | Q_PROPERTY(MouseCommand commandActiveTitlebar1 READ commandActiveTitlebar1 WRITE setCommandActiveTitlebar1 NOTIFY commandActiveTitlebar1Changed) | 118 | Q_PROPERTY(MouseCommand commandActiveTitlebar1 READ commandActiveTitlebar1 WRITE setCommandActiveTitlebar1 NOTIFY commandActiveTitlebar1Changed) | ||
123 | Q_PROPERTY(MouseCommand commandActiveTitlebar2 READ commandActiveTitlebar2 WRITE setCommandActiveTitlebar2 NOTIFY commandActiveTitlebar2Changed) | 119 | Q_PROPERTY(MouseCommand commandActiveTitlebar2 READ commandActiveTitlebar2 WRITE setCommandActiveTitlebar2 NOTIFY commandActiveTitlebar2Changed) | ||
124 | Q_PROPERTY(MouseCommand commandActiveTitlebar3 READ commandActiveTitlebar3 WRITE setCommandActiveTitlebar3 NOTIFY commandActiveTitlebar3Changed) | 120 | Q_PROPERTY(MouseCommand commandActiveTitlebar3 READ commandActiveTitlebar3 WRITE setCommandActiveTitlebar3 NOTIFY commandActiveTitlebar3Changed) | ||
125 | Q_PROPERTY(MouseCommand commandInactiveTitlebar1 READ commandInactiveTitlebar1 WRITE setCommandInactiveTitlebar1 NOTIFY commandInactiveTitlebar1Changed) | 121 | Q_PROPERTY(MouseCommand commandInactiveTitlebar1 READ commandInactiveTitlebar1 WRITE setCommandInactiveTitlebar1 NOTIFY commandInactiveTitlebar1Changed) | ||
▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Line(s) | 323 | bool isRollOverDesktops() const { | |||
328 | return m_rollOverDesktops; | 324 | return m_rollOverDesktops; | ||
329 | } | 325 | } | ||
330 | 326 | | |||
331 | // 0 - 4 , see Workspace::allowClientActivation() | 327 | // 0 - 4 , see Workspace::allowClientActivation() | ||
332 | int focusStealingPreventionLevel() const { | 328 | int focusStealingPreventionLevel() const { | ||
333 | return m_focusStealingPreventionLevel; | 329 | return m_focusStealingPreventionLevel; | ||
334 | } | 330 | } | ||
335 | 331 | | |||
336 | /** | | |||
337 | * support legacy fullscreen windows hack: borderless non-netwm windows with screen geometry | | |||
338 | */ | | |||
339 | bool isLegacyFullscreenSupport() const { | | |||
340 | return m_legacyFullscreenSupport; | | |||
341 | } | | |||
342 | | ||||
343 | enum WindowOperation { | 332 | enum WindowOperation { | ||
344 | MaximizeOp = 5000, | 333 | MaximizeOp = 5000, | ||
345 | RestoreOp, | 334 | RestoreOp, | ||
346 | MinimizeOp, | 335 | MinimizeOp, | ||
347 | MoveOp, | 336 | MoveOp, | ||
348 | UnrestrictedMoveOp, | 337 | UnrestrictedMoveOp, | ||
349 | ResizeOp, | 338 | ResizeOp, | ||
350 | UnrestrictedResizeOp, | 339 | UnrestrictedResizeOp, | ||
▲ Show 20 Lines • Show All 258 Lines • ▼ Show 20 Line(s) | |||||
609 | void setSeparateScreenFocus(bool separateScreenFocus); | 598 | void setSeparateScreenFocus(bool separateScreenFocus); | ||
610 | void setPlacement(int placement); | 599 | void setPlacement(int placement); | ||
611 | void setBorderSnapZone(int borderSnapZone); | 600 | void setBorderSnapZone(int borderSnapZone); | ||
612 | void setWindowSnapZone(int windowSnapZone); | 601 | void setWindowSnapZone(int windowSnapZone); | ||
613 | void setCenterSnapZone(int centerSnapZone); | 602 | void setCenterSnapZone(int centerSnapZone); | ||
614 | void setSnapOnlyWhenOverlapping(bool snapOnlyWhenOverlapping); | 603 | void setSnapOnlyWhenOverlapping(bool snapOnlyWhenOverlapping); | ||
615 | void setRollOverDesktops(bool rollOverDesktops); | 604 | void setRollOverDesktops(bool rollOverDesktops); | ||
616 | void setFocusStealingPreventionLevel(int focusStealingPreventionLevel); | 605 | void setFocusStealingPreventionLevel(int focusStealingPreventionLevel); | ||
617 | void setLegacyFullscreenSupport(bool legacyFullscreenSupport); | | |||
618 | void setOperationTitlebarDblClick(WindowOperation operationTitlebarDblClick); | 606 | void setOperationTitlebarDblClick(WindowOperation operationTitlebarDblClick); | ||
619 | void setOperationMaxButtonLeftClick(WindowOperation op); | 607 | void setOperationMaxButtonLeftClick(WindowOperation op); | ||
620 | void setOperationMaxButtonRightClick(WindowOperation op); | 608 | void setOperationMaxButtonRightClick(WindowOperation op); | ||
621 | void setOperationMaxButtonMiddleClick(WindowOperation op); | 609 | void setOperationMaxButtonMiddleClick(WindowOperation op); | ||
622 | void setCommandActiveTitlebar1(MouseCommand commandActiveTitlebar1); | 610 | void setCommandActiveTitlebar1(MouseCommand commandActiveTitlebar1); | ||
623 | void setCommandActiveTitlebar2(MouseCommand commandActiveTitlebar2); | 611 | void setCommandActiveTitlebar2(MouseCommand commandActiveTitlebar2); | ||
624 | void setCommandActiveTitlebar3(MouseCommand commandActiveTitlebar3); | 612 | void setCommandActiveTitlebar3(MouseCommand commandActiveTitlebar3); | ||
625 | void setCommandInactiveTitlebar1(MouseCommand commandInactiveTitlebar1); | 613 | void setCommandInactiveTitlebar1(MouseCommand commandInactiveTitlebar1); | ||
▲ Show 20 Lines • Show All 174 Lines • ▼ Show 20 Line(s) | 777 | Q_SIGNALS: | |||
800 | void separateScreenFocusChanged(bool); | 788 | void separateScreenFocusChanged(bool); | ||
801 | void placementChanged(); | 789 | void placementChanged(); | ||
802 | void borderSnapZoneChanged(); | 790 | void borderSnapZoneChanged(); | ||
803 | void windowSnapZoneChanged(); | 791 | void windowSnapZoneChanged(); | ||
804 | void centerSnapZoneChanged(); | 792 | void centerSnapZoneChanged(); | ||
805 | void snapOnlyWhenOverlappingChanged(); | 793 | void snapOnlyWhenOverlappingChanged(); | ||
806 | void rollOverDesktopsChanged(bool enabled); | 794 | void rollOverDesktopsChanged(bool enabled); | ||
807 | void focusStealingPreventionLevelChanged(); | 795 | void focusStealingPreventionLevelChanged(); | ||
808 | void legacyFullscreenSupportChanged(); | | |||
809 | void operationTitlebarDblClickChanged(); | 796 | void operationTitlebarDblClickChanged(); | ||
810 | void operationMaxButtonLeftClickChanged(); | 797 | void operationMaxButtonLeftClickChanged(); | ||
811 | void operationMaxButtonRightClickChanged(); | 798 | void operationMaxButtonRightClickChanged(); | ||
812 | void operationMaxButtonMiddleClickChanged(); | 799 | void operationMaxButtonMiddleClickChanged(); | ||
813 | void commandActiveTitlebar1Changed(); | 800 | void commandActiveTitlebar1Changed(); | ||
814 | void commandActiveTitlebar2Changed(); | 801 | void commandActiveTitlebar2Changed(); | ||
815 | void commandActiveTitlebar3Changed(); | 802 | void commandActiveTitlebar3Changed(); | ||
816 | void commandInactiveTitlebar1Changed(); | 803 | void commandInactiveTitlebar1Changed(); | ||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 843 | private: | |||
868 | bool m_separateScreenFocus; | 855 | bool m_separateScreenFocus; | ||
869 | Placement::Policy m_placement; | 856 | Placement::Policy m_placement; | ||
870 | int m_borderSnapZone; | 857 | int m_borderSnapZone; | ||
871 | int m_windowSnapZone; | 858 | int m_windowSnapZone; | ||
872 | int m_centerSnapZone; | 859 | int m_centerSnapZone; | ||
873 | bool m_snapOnlyWhenOverlapping; | 860 | bool m_snapOnlyWhenOverlapping; | ||
874 | bool m_rollOverDesktops; | 861 | bool m_rollOverDesktops; | ||
875 | int m_focusStealingPreventionLevel; | 862 | int m_focusStealingPreventionLevel; | ||
876 | bool m_legacyFullscreenSupport; | | |||
877 | int m_killPingTimeout; | 863 | int m_killPingTimeout; | ||
878 | bool m_hideUtilityWindowsForInactive; | 864 | bool m_hideUtilityWindowsForInactive; | ||
879 | bool m_inactiveTabsSkipTaskbar; | 865 | bool m_inactiveTabsSkipTaskbar; | ||
880 | bool m_autogroupSimilarWindows; | 866 | bool m_autogroupSimilarWindows; | ||
881 | bool m_autogroupInForeground; | 867 | bool m_autogroupInForeground; | ||
882 | 868 | | |||
883 | CompositingType m_compositingMode; | 869 | CompositingType m_compositingMode; | ||
884 | bool m_useCompositing; | 870 | bool m_useCompositing; | ||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |