diff --git a/kwin-5.27.0-allow-vt-switch.patch b/kwin-5.27.0-allow-vt-switch.patch new file mode 100644 index 0000000..121354b --- /dev/null +++ b/kwin-5.27.0-allow-vt-switch.patch @@ -0,0 +1,13 @@ +--- kwin-5.27.0/src/input.cpp 2023-02-09 04:15:33.000000000 -0800 ++++ kwin-5.27.0/src/input.cpp.new 2023-02-20 20:40:33.920599151 -0800 +@@ -2822,8 +2822,8 @@ + void InputRedirection::setupInputFilters() + { + const bool hasGlobalShortcutSupport = waylandServer()->hasGlobalShortcutSupport(); +- if ((kwinApp()->session()->capabilities() & Session::Capability::SwitchTerminal) +- && hasGlobalShortcutSupport) { ++ if (kwinApp()->session()->capabilities() & Session::Capability::SwitchTerminal) ++ { + installInputEventFilter(new VirtualTerminalFilter); + } + installInputEventSpy(new HideCursorSpy); diff --git a/kwin.spec b/kwin.spec index 749af0b..91edde4 100644 --- a/kwin.spec +++ b/kwin.spec @@ -17,7 +17,7 @@ Name: kwin Version: 5.27.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Window manager # all sources are effectively GPLv2+, except for: @@ -35,6 +35,12 @@ URL: https://userbase.kde.org/KWin %global stable stable %endif Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz +# Allow VT switching even with global shortcuts disabled: +# https://bugzilla.redhat.com/show_bug.cgi?id=2171332#c3 +# https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2650#note_625844 +# not submitted upstream yet as we may go with something else once +# folks get a chance to look at it +Patch0: kwin-5.27.0-allow-vt-switch.patch ## upstream patches @@ -362,6 +368,9 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||: %changelog +* Mon Feb 20 2023 Adam Williamson - 5.27.0-2 +- Allow VT switching even if global shortcuts are disabled + * Thu Feb 09 2023 Marc Deop - 5.27.0-1 - 5.27.0