From 30aa69f71ce0f61565cc1008ff2a4ff08212faec Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 22 Nov 2023 02:14:13 +0500 Subject: [PATCH] Fix blocking shutdown app with LibInput (#13677) --- .../Input/LibInput/LibInputBackend.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Linux/Avalonia.LinuxFramebuffer/Input/LibInput/LibInputBackend.cs b/src/Linux/Avalonia.LinuxFramebuffer/Input/LibInput/LibInputBackend.cs index 300cbc2689b..fba9862a85a 100644 --- a/src/Linux/Avalonia.LinuxFramebuffer/Input/LibInput/LibInputBackend.cs +++ b/src/Linux/Avalonia.LinuxFramebuffer/Input/LibInput/LibInputBackend.cs @@ -19,7 +19,10 @@ public partial class LibInputBackend : IInputBackend public LibInputBackend() { var ctx = libinput_path_create_context(); - new Thread(() => InputThread(ctx)).Start(); + new Thread(() => InputThread(ctx)) + { + IsBackground = true + }.Start(); } private unsafe void InputThread(IntPtr ctx)