mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
backends/native: Also check touch-mode on object initialization
On a Surface Pro 2017, touch-mode is currently only detected correctly after detaching and attaching the Type Cover (detachable keyboard) once, it seems that `has_external_keyboard` is only set to the correct value after MetaSeatNative is initialized. So fix that and call `update_touch_mode()` once again when the object is initialized and the `has_external_keyboard` and `has_touchscreen` properties have been finally updated. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1075
This commit is contained in:
parent
282b09c17e
commit
41d72e86e0
@ -2552,6 +2552,8 @@ meta_seat_native_constructed (GObject *object)
|
||||
seat->has_external_keyboard = has_external_keyboard (seat);
|
||||
seat->has_touchscreen = has_touchscreen (seat);
|
||||
|
||||
update_touch_mode (seat);
|
||||
|
||||
if (G_OBJECT_CLASS (meta_seat_native_parent_class)->constructed)
|
||||
G_OBJECT_CLASS (meta_seat_native_parent_class)->constructed (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user