Allow VT switching even if global shortcuts are disabled

epel9
Adam Williamson 2 years ago
parent a3981a2f63
commit c148d946fb

@ -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);

@ -17,7 +17,7 @@
Name: kwin Name: kwin
Version: 5.27.0 Version: 5.27.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: KDE Window manager Summary: KDE Window manager
# all sources are effectively GPLv2+, except for: # all sources are effectively GPLv2+, except for:
@ -35,6 +35,12 @@ URL: https://userbase.kde.org/KWin
%global stable stable %global stable stable
%endif %endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz 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 ## upstream patches
@ -362,6 +368,9 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
%changelog %changelog
* Mon Feb 20 2023 Adam Williamson <awilliam@redhat.com> - 5.27.0-2
- Allow VT switching even if global shortcuts are disabled
* Thu Feb 09 2023 Marc Deop <marcdeop@fedoraproject.org> - 5.27.0-1 * Thu Feb 09 2023 Marc Deop <marcdeop@fedoraproject.org> - 5.27.0-1
- 5.27.0 - 5.27.0

Loading…
Cancel
Save