mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
Terminal+LibVT: Toggle TerminalWidget's focus on input preemption
This prevents Terminal's cursor from blinking when a Popup is open.
This commit is contained in:
parent
657ff1cd19
commit
f7eb72a8be
2 changed files with 6 additions and 2 deletions
|
@ -423,6 +423,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return GUI::Window::CloseRequestDecision::StayOpen;
|
||||
};
|
||||
|
||||
window->on_input_preemption_change = [&](bool is_preempted) {
|
||||
terminal->set_logical_focus(!is_preempted);
|
||||
};
|
||||
|
||||
TRY(Core::System::unveil("/sys/kernel/processes", "r"));
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil("/bin", "r"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue