Skip to content

Commit

Permalink
chore(win): use realtime priority
Browse files Browse the repository at this point in the history
This will still only set the priority to "High" unless kanata is run in
administrator mode. Otherwise "Realtime" priority would be used.
  • Loading branch information
jtroo committed Jun 15, 2024
1 parent a2098f5 commit c782cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kanata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ impl Kanata {
log::info!("Asking Windows to increase process priority");
winapi::um::processthreadsapi::SetPriorityClass(
winapi::um::processthreadsapi::GetCurrentProcess(),
winapi::um::winbase::HIGH_PRIORITY_CLASS,
winapi::um::winbase::REALTIME_PRIORITY_CLASS,
);
}

Expand Down

0 comments on commit c782cdf

Please sign in to comment.