mutter/src/backends/native
Carlos Garnacho f8e2234ce5 backends/native: Drop external keyboard detection for ::touch-mode
This cannot be made to work reliably. Some factoids:

- Internal devices may be connected via USB.
- The ACPI spec provides the _PLD (Physical location of device) hook to
  determine how is an USB device connected, with an anecdotal success
  rate. Internal devices may be seen as external and vice-versa, there is
  also an "unknown" value that is widely used.
- There may be non-USB keyboards, the old "AT Translated Set 2 Keyboard"
  interface does not change on hotplugging.
- Libinput has an internal series of quirks to classify keyboards as
  internal of external, also with an "unknown" value.

These heuristics are kinda hopeless to get right by our own hand. Drop
this external keyboard detection in the hope that there will be something
more deterministic to rely on in the future (e.g. the libinput quirks
made available to us directly or indirectly).

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2378
Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2353

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1277
2020-05-29 14:37:21 +00:00
..
dbus-utils.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
dbus-utils.h launcher: Replace mutter-launch with logind integration 2014-05-19 15:09:23 -04:00
gen-default-modes.py Fix incorrect 'is' in gen_default_modes 2020-02-10 20:35:05 +01:00
meta-backend-native-private.h backends/native: Implement support for pointer barriers 2015-01-19 02:27:59 -08:00
meta-backend-native-types.h udev: Add helpers to list DRM devices 2019-06-20 13:31:55 +00:00
meta-backend-native.c Reshuffle Wayland initailization 2020-05-26 16:35:00 +02:00
meta-backend-native.h native: Implement ClutterSeat 2020-01-30 17:59:41 +01:00
meta-barrier-native.c Use G_GNUC_FALLTHROUGH instead of comments 2020-01-09 17:58:29 +01:00
meta-barrier-native.h Use G_DECLARE_DERIVABLE/FINAL_TYPE on some types 2018-12-21 19:48:50 +00:00
meta-clutter-backend-native.c clutter: Drop ClutterDeviceManager 2020-01-30 18:11:23 +01:00
meta-clutter-backend-native.h native: Implement ClutterSeat 2020-01-30 17:59:41 +01:00
meta-crtc-kms.c renderer-native: Draw stage separately per CRTC 2020-02-25 18:39:51 +01:00
meta-crtc-kms.h renderer-native: Draw stage separately per CRTC 2020-02-25 18:39:51 +01:00
meta-cursor-renderer-native.c cursor-renderer-native: Take CRTC transform into account 2020-04-15 15:29:55 +00:00
meta-cursor-renderer-native.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-drm-buffer-dumb.c drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer-dumb.h drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer-gbm.c cogl/onscreen: Add API to scanout a buffer directly 2020-04-16 15:05:15 +02:00
meta-drm-buffer-gbm.h drm-buffer/gbm: Support both surface and standalone buffers 2020-04-16 14:08:19 +02:00
meta-drm-buffer-import.c renderer/native: Import primary buffer to 2nd GPU 2020-01-16 20:19:29 +00:00
meta-drm-buffer-import.h renderer/native: Import primary buffer to 2nd GPU 2020-01-16 20:19:29 +00:00
meta-drm-buffer.c drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-drm-buffer.h drm-buffer: Make the "types" actual types 2019-05-21 14:55:38 +00:00
meta-event-native.c backends: Don't use glib types in new native backend objects 2019-08-24 08:59:08 +00:00
meta-event-native.h backends: Don't use glib types in new native backend objects 2019-08-24 08:59:08 +00:00
meta-gpu-kms.c backend/native: Share drmModeAddFB code 2020-01-16 20:19:29 +00:00
meta-gpu-kms.h backend/native: Share drmModeAddFB code 2020-01-16 20:19:29 +00:00
meta-input-device-native.c backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-input-device-native.h backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-input-device-tool-native.c backends: Don't use glib types in new native backend objects 2019-08-24 08:59:08 +00:00
meta-input-device-tool-native.h backends/native: Replace tabs with spaces 2020-02-19 18:28:29 +00:00
meta-input-settings-native.c input-settings: Wire up middle-emulation 2020-03-15 13:04:32 +09:00
meta-input-settings-native.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-keymap-native.c backends: use the enum name instead of a literal 0 2020-03-24 15:46:43 +10:00
meta-keymap-native.h clutter: Move keymap from ClutterBackend to ClutterSeat 2020-01-30 17:59:47 +01:00
meta-kms-connector-private.h kms: Predict state changes when processing update 2019-10-07 14:59:18 +00:00
meta-kms-connector.c kms: Fix drmModeEncoder leak 2020-01-24 21:10:11 +00:00
meta-kms-connector.h backend/native: Add and use transactional KMS API 2019-06-20 13:31:56 +00:00
meta-kms-crtc-private.h kms: Predict state changes when processing update 2019-10-07 14:59:18 +00:00
meta-kms-crtc.c kms/crtc: Fix gamma state leak 2020-01-24 21:10:11 +00:00
meta-kms-crtc.h kms: Remove unused fields from MetaKmsCrtcState struct 2019-08-15 20:38:28 +00:00
meta-kms-device-private.h kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-device.c kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-device.h kms/device: Handle tracking capabilities 2020-02-11 18:32:07 +01:00
meta-kms-impl-device.c kms-impl-device: Clean up state if drm resources disappear 2020-03-12 13:08:46 +00:00
meta-kms-impl-device.h kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-impl-simple.c kms-impl/simple: Fix page_flip_data ref leak on fallback 2020-04-23 16:30:22 +03:00
meta-kms-impl-simple.h backends/native: Add basic KMS abstraction building blocks 2019-06-20 13:31:55 +00:00
meta-kms-impl.c kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-impl.h kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-page-flip-private.h backend/native: Add and use transactional KMS API 2019-06-20 13:31:56 +00:00
meta-kms-page-flip.c backend/native: Add and use transactional KMS API 2019-06-20 13:31:56 +00:00
meta-kms-plane-private.h kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-plane.c kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-plane.h kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-private.h kms: Return gpointer from impl tasks 2020-02-11 18:32:07 +01:00
meta-kms-types.h kms-impl-simple: Add fake cursor planes if no real ones 2020-03-07 21:40:50 +00:00
meta-kms-update-private.h kms/plane-assignment: Add API to set cursor hotspot metadata 2020-03-26 16:18:28 +00:00
meta-kms-update.c kms/plane-assignment: Add API to set cursor hotspot metadata 2020-03-26 16:18:28 +00:00
meta-kms-update.h kms/plane-assignment: Add API to set cursor hotspot metadata 2020-03-26 16:18:28 +00:00
meta-kms-utils.c backend/native: Move some KMS utilities to its own file 2019-06-20 13:31:56 +00:00
meta-kms-utils.h backend/native: Move some KMS utilities to its own file 2019-06-20 13:31:56 +00:00
meta-kms.c kms: Make GSource ready by default 2020-04-23 16:30:17 +03:00
meta-kms.h kms: Make update processing return direct feedback 2020-02-11 18:32:07 +01:00
meta-launcher.c backends: Replace ClutterDeviceManager usage in favor of ClutterSeat 2020-01-30 18:11:23 +01:00
meta-launcher.h backends/native: Replace tabs with spaces 2020-02-19 18:28:29 +00:00
meta-monitor-manager-kms.c monitor-manager: Remove 'mirror' capability 2020-03-18 00:46:20 +00:00
meta-monitor-manager-kms.h backends/native: Move primary_gpu into MetaRendererNative 2019-01-13 10:30:44 +00:00
meta-output-kms.c crtc: Move configured state to separate struct 2020-02-25 18:39:51 +01:00
meta-output-kms.h backend/native: Add and use transactional KMS API 2019-06-20 13:31:56 +00:00
meta-renderer-native-gles3.c renderer-native: Fix memory leak in secondary GPU update 2020-01-21 14:39:01 +00:00
meta-renderer-native-gles3.h renderer/native: remove meta_renderer_native_gles3_read_pixels 2018-11-19 22:53:13 +00:00
meta-renderer-native.c renderer/native: Only enable shadowfbs if we can blit 2020-05-26 13:54:28 +00:00
meta-renderer-native.h onscreen/native: Add API to check whether buffer is scanout compatible 2020-04-16 15:05:52 +02:00
meta-seat-native.c backends/native: Drop external keyboard detection for ::touch-mode 2020-05-29 14:37:21 +00:00
meta-seat-native.h backends/native: Drop external keyboard detection for ::touch-mode 2020-05-29 14:37:21 +00:00
meta-stage-native.c renderer/native: Queue mode reset from new rebuild_views vfunc 2019-06-27 19:08:01 +02:00
meta-stage-native.h backends/native: Stop supporting stage views being disabled 2017-10-05 18:08:09 -04:00
meta-udev.c native: Return an error if no drm devices are found 2020-05-22 20:25:06 +00:00
meta-udev.h backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-virtual-input-device-native.c backends/native: Unset the correct button codes when a virtual device is destroyed 2020-05-07 17:01:05 +00:00
meta-virtual-input-device-native.h clutter: Move evdev input to src/backends/native 2019-08-24 08:59:08 +00:00
meta-xkb-utils.c backends/native: Replace tabs with spaces 2020-02-19 18:28:29 +00:00
meta-xkb-utils.h clutter: Move evdev input to src/backends/native 2019-08-24 08:59:08 +00:00