From c8db8bbe22b807634da520ac02c96a3d2eeac088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 29 Nov 2018 11:37:45 +0100 Subject: [PATCH] backend/x11/nested: Always claim the lid is open The nested backend used the value from udev, meaning that one couldn't configure the fake monitor if the laptop panel of the host was closed. Avoid this annoyance by always having the nested backend claiming the lid is open. --- src/backends/x11/nested/meta-backend-x11-nested.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/backends/x11/nested/meta-backend-x11-nested.c b/src/backends/x11/nested/meta-backend-x11-nested.c index 923ae7c6e..81a95bae8 100644 --- a/src/backends/x11/nested/meta-backend-x11-nested.c +++ b/src/backends/x11/nested/meta-backend-x11-nested.c @@ -131,6 +131,12 @@ meta_backend_x11_nested_set_keymap (MetaBackend *backend, { } +static gboolean +meta_backend_x11_nested_is_lid_closed (MetaBackend *backend) +{ + return FALSE; +} + static gboolean meta_backend_x11_nested_handle_host_xevent (MetaBackendX11 *x11, XEvent *event) @@ -192,6 +198,7 @@ meta_backend_x11_nested_class_init (MetaBackendX11NestedClass *klass) backend_class->select_stage_events = meta_backend_x11_nested_select_stage_events; backend_class->lock_layout_group = meta_backend_x11_nested_lock_layout_group; backend_class->set_keymap = meta_backend_x11_nested_set_keymap; + backend_class->is_lid_closed = meta_backend_x11_nested_is_lid_closed; backend_x11_class->handle_host_xevent = meta_backend_x11_nested_handle_host_xevent; backend_x11_class->translate_device_event = meta_backend_x11_nested_translate_device_event;