diff --git a/YMouseButtonControl.Linux/Services/CurrentWindowServiceX11.cs b/YMouseButtonControl.Linux/Services/CurrentWindowServiceX11.cs index 2fa5d8a..6cf362e 100644 --- a/YMouseButtonControl.Linux/Services/CurrentWindowServiceX11.cs +++ b/YMouseButtonControl.Linux/Services/CurrentWindowServiceX11.cs @@ -96,22 +96,22 @@ out var prop2 internal static partial class X11 { - [LibraryImport("libX11.so")] + [LibraryImport("libX11.so.6")] internal static partial int XFree(nint data); - [LibraryImport("libX11.so")] + [LibraryImport("libX11.so.6")] internal static partial nint XOpenDisplay(nint display); - [LibraryImport("libX11.so")] + [LibraryImport("libX11.so.6")] internal static partial void XCloseDisplay(nint display); - [LibraryImport("libX11.so")] + [LibraryImport("libX11.so.6")] internal static partial nint XDefaultRootWindow(nint display); - [LibraryImport("libX11.so")] + [LibraryImport("libX11.so.6")] internal static partial nint XInternAtom(nint display, nint atomName, int onlyIfExists); - [LibraryImport("libX11.so")] + [LibraryImport("libX11.so.6")] internal static partial int XGetWindowProperty( IntPtr display, IntPtr window, diff --git a/YMouseButtonControl.Linux/Services/ProcessMonitorService.cs b/YMouseButtonControl.Linux/Services/ProcessMonitorService.cs index 81fb3b8..c983a6a 100644 --- a/YMouseButtonControl.Linux/Services/ProcessMonitorService.cs +++ b/YMouseButtonControl.Linux/Services/ProcessMonitorService.cs @@ -12,6 +12,5 @@ public IEnumerable GetProcesses() => .Where(x => !string.IsNullOrWhiteSpace(x.Process.MainModule?.ModuleName) && !string.IsNullOrWhiteSpace(x.Process.ProcessName) - ) - .DistinctBy(x => x.Process.MainModule?.FileName); + ); } diff --git a/YMouseButtonControl/Views/Dialogs/ProcessSelectorDialog.axaml b/YMouseButtonControl/Views/Dialogs/ProcessSelectorDialog.axaml index c3b6beb..d96d590 100644 --- a/YMouseButtonControl/Views/Dialogs/ProcessSelectorDialog.axaml +++ b/YMouseButtonControl/Views/Dialogs/ProcessSelectorDialog.axaml @@ -55,6 +55,7 @@ +