Changeset View
Changeset View
Standalone View
Standalone View
input.cpp
Show First 20 Lines • Show All 1745 Lines • ▼ Show 20 Line(s) | 1655 | if (waylandServer()) { | |||
---|---|---|---|---|---|
1746 | m_pointer->init(); | 1746 | m_pointer->init(); | ||
1747 | m_touch->init(); | 1747 | m_touch->init(); | ||
1748 | } | 1748 | } | ||
1749 | setupInputFilters(); | 1749 | setupInputFilters(); | ||
1750 | } | 1750 | } | ||
1751 | 1751 | | |||
1752 | void InputRedirection::setupInputFilters() | 1752 | void InputRedirection::setupInputFilters() | ||
1753 | { | 1753 | { | ||
1754 | if (LogindIntegration::self()->hasSessionControl()) { | 1754 | const bool hasGlobalShortcutSupport = !waylandServer() || waylandServer()->hasGlobalShortcutSupport(); | ||
1755 | if (LogindIntegration::self()->hasSessionControl() && hasGlobalShortcutSupport) { | ||||
1755 | installInputEventFilter(new VirtualTerminalFilter); | 1756 | installInputEventFilter(new VirtualTerminalFilter); | ||
1756 | } | 1757 | } | ||
1757 | if (waylandServer()) { | 1758 | if (waylandServer()) { | ||
1758 | installInputEventSpy(new TouchHideCursorSpy); | 1759 | installInputEventSpy(new TouchHideCursorSpy); | ||
1760 | if (hasGlobalShortcutSupport) { | ||||
1759 | installInputEventFilter(new TerminateServerFilter); | 1761 | installInputEventFilter(new TerminateServerFilter); | ||
1762 | } | ||||
1760 | installInputEventFilter(new DragAndDropInputFilter); | 1763 | installInputEventFilter(new DragAndDropInputFilter); | ||
1761 | installInputEventFilter(new LockScreenFilter); | 1764 | installInputEventFilter(new LockScreenFilter); | ||
1762 | installInputEventFilter(new PopupInputFilter); | 1765 | installInputEventFilter(new PopupInputFilter); | ||
1763 | m_windowSelector = new WindowSelectorFilter; | 1766 | m_windowSelector = new WindowSelectorFilter; | ||
1764 | installInputEventFilter(m_windowSelector); | 1767 | installInputEventFilter(m_windowSelector); | ||
1765 | } | 1768 | } | ||
1769 | if (hasGlobalShortcutSupport) { | ||||
1766 | installInputEventFilter(new ScreenEdgeInputFilter); | 1770 | installInputEventFilter(new ScreenEdgeInputFilter); | ||
1771 | } | ||||
1767 | installInputEventFilter(new EffectsFilter); | 1772 | installInputEventFilter(new EffectsFilter); | ||
1768 | installInputEventFilter(new MoveResizeFilter); | 1773 | installInputEventFilter(new MoveResizeFilter); | ||
1769 | #ifdef KWIN_BUILD_TABBOX | 1774 | #ifdef KWIN_BUILD_TABBOX | ||
1770 | installInputEventFilter(new TabBoxInputFilter); | 1775 | installInputEventFilter(new TabBoxInputFilter); | ||
1771 | #endif | 1776 | #endif | ||
1777 | if (hasGlobalShortcutSupport) { | ||||
1772 | installInputEventFilter(new GlobalShortcutFilter); | 1778 | installInputEventFilter(new GlobalShortcutFilter); | ||
1779 | } | ||||
1773 | installInputEventFilter(new DecorationEventFilter); | 1780 | installInputEventFilter(new DecorationEventFilter); | ||
1774 | installInputEventFilter(new InternalWindowEventFilter); | 1781 | installInputEventFilter(new InternalWindowEventFilter); | ||
1775 | if (waylandServer()) { | 1782 | if (waylandServer()) { | ||
1776 | installInputEventFilter(new WindowActionInputFilter); | 1783 | installInputEventFilter(new WindowActionInputFilter); | ||
1777 | installInputEventFilter(new ForwardInputFilter); | 1784 | installInputEventFilter(new ForwardInputFilter); | ||
1778 | } | 1785 | } | ||
1779 | } | 1786 | } | ||
1780 | 1787 | | |||
▲ Show 20 Lines • Show All 572 Lines • Show Last 20 Lines |