D17304: Introduce a command line option to disable any kind of global shortcuts

Martin Flöser <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
graesslin created this revision.
graesslin added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
graesslin requested review of this revision.

REVISION SUMMARY
  This command line option is useful for KWin in embedded use case. That
  is when KWin is just used as a compositor for one application instead of
  a complete desktop environment. In such a setup global shortcuts are not
  wanted and interfere with the application. E.g. one does not want Alt+F4 <https://phabricator.kde.org/F4>
  to close the window, that would render the system unusable.
  
  This change introduces a command line option and disables the following
  event filters and spies:
  
  - global shortcuts
  - modifier only shortcuts
  - terminate session
  - virtual terminal switching
  - screen edges
  
  KGlobalAccel still gets inited, otherwise the (non-functional) binary
  would be launched when KWin registers it's global shortcuts.

TEST PLAN
  New test added based on existing tests for the global
  shortcuts, ctest passes

REPOSITORY
  R108 KWin

BRANCH
  no-global-shortcuts

REVISION DETAIL
  https://phabricator.kde.org/D17304

AFFECTED FILES
  autotests/integration/CMakeLists.txt
  autotests/integration/no_global_shortcuts_test.cpp
  autotests/integration/start_test.cpp
  input.cpp
  keyboard_input.cpp
  main_wayland.cpp
  wayland_server.cpp
  wayland_server.h

To: graesslin, #kwin
Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.