Split EmbeddedProcess::reset to allow stopping timers without full reset.

This commit is contained in:
Pāvels Nadtočajevs
2026-01-15 11:19:43 +02:00
parent 1549d51865
commit c3bef1b83f
4 changed files with 11 additions and 3 deletions

View File

@@ -220,13 +220,17 @@ void EmbeddedProcess::reset() {
embedding_completed = false;
start_embedding_time = 0;
embedding_grab_focus = false;
timer_embedding->stop();
timer_update_embedded_process->stop();
reset_timers();
set_process(false);
set_notify_transform(false);
queue_redraw();
}
void EmbeddedProcess::reset_timers() {
timer_embedding->stop();
timer_update_embedded_process->stop();
}
void EmbeddedProcess::request_close() {
if (current_process_id != 0 && embedding_completed) {
DisplayServer::get_singleton()->request_close_embedded_process(current_process_id);