70bc9524d9
Summary: KWin passes the current keysym converted to a Qt::Key in the QKeyEvent. The current keysym does not always change when a key gets released, so when pressing a shortcut the release carry a Qt::Key which could be considered as wrong. QtWayland transforms the actual pressed/released key into a keysym and passes that through the QKeyEvent. This change does the same for the internal windows. A new QKeyEvent is created and adjusted in a way that it matches what Qt expects. Why not change everything to how Qt expects it? The key is used at various places and in KWin internally we expect the behavior how it is currently implemented. So it's better to use Qt's expectation only when interacting with Qt. Also the change carries a workaround for a bug in QKeySequenceEdit (see QTBUG-62102) and transforms Super to Meta. As this adjustment only makes sense for the internal windows we need to send in an adjusted QKeyEvent anyway, so another argument for using the Qt behavior only in this place. Test Plan: Can set a shortcut on Wayland and it can be used to activate the window. Reviewers: #kwin, #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D6828 |
||
---|---|---|
.. | ||
integration | ||
libinput | ||
libkwineffects | ||
libxrenderutils | ||
tabbox | ||
abstract_client.h | ||
client.h | ||
CMakeLists.txt | ||
fakeeffectplugin.cpp | ||
fakeeffectplugin.json | ||
fakeeffectplugin_version.cpp | ||
fakeeffectplugin_version.json | ||
mock_abstract_client.cpp | ||
mock_abstract_client.h | ||
mock_client.cpp | ||
mock_client.h | ||
mock_effectshandler.cpp | ||
mock_effectshandler.h | ||
mock_screens.cpp | ||
mock_screens.h | ||
mock_workspace.cpp | ||
mock_workspace.h | ||
onscreennotificationtest.cpp | ||
onscreennotificationtest.h | ||
opengl_context_attribute_builder_test.cpp | ||
test_builtin_effectloader.cpp | ||
test_client_machine.cpp | ||
test_gestures.cpp | ||
test_plugin_effectloader.cpp | ||
test_screen_edges.cpp | ||
test_screen_paint_data.cpp | ||
test_screens.cpp | ||
test_scripted_effectloader.cpp | ||
test_virtual_desktops.cpp | ||
test_window_paint_data.cpp | ||
test_x11_timestamp_update.cpp | ||
test_xcb_size_hints.cpp | ||
test_xcb_window.cpp | ||
test_xcb_wrapper.cpp | ||
test_xkb.cpp | ||
test_xrandr_screens.cpp | ||
testutils.h | ||
workspace.h |