mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix keyboard layout fetch issue
This commit is contained in:
parent
023ab45022
commit
465108a9d4
1 changed files with 2 additions and 3 deletions
|
|
@ -371,9 +371,8 @@ namespace Flow.Launcher.Infrastructure
|
|||
if (enHKL == HKL.Null) return;
|
||||
|
||||
// Get the current window thread ID
|
||||
uint threadId = 0;
|
||||
var result = PInvoke.GetWindowThreadProcessId(PInvoke.GetForegroundWindow(), &threadId);
|
||||
if (result == 0 || threadId == 0) throw new Win32Exception(Marshal.GetLastWin32Error());
|
||||
var threadId = PInvoke.GetWindowThreadProcessId(PInvoke.GetForegroundWindow());
|
||||
if (threadId == 0) throw new Win32Exception(Marshal.GetLastWin32Error());
|
||||
|
||||
// Backup current keyboard layout
|
||||
if (backupPrevious)
|
||||
|
|
|
|||
Loading…
Reference in a new issue