Skip to content

Commit

Permalink
Revert "vl: Move input init to exit_preconfig"
Browse files Browse the repository at this point in the history
This reverts commit a503458.
  • Loading branch information
mborgerson committed Jul 28, 2023
1 parent a503458 commit 16dd084
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions softmmu/vl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2651,8 +2651,6 @@ void qmp_x_exit_preconfig(Error **errp)
qemu_create_cli_devices();
qemu_machine_creation_done();

xemu_input_init();

if (loadvm) {
load_snapshot(loadvm, NULL, false, NULL, &error_fatal);
}
Expand Down
6 changes: 6 additions & 0 deletions ui/xemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,12 @@ int main(int argc, char **argv)

DPRINTF("Main thread: initializing app\n");

qemu_mutex_lock_main_loop();
qemu_mutex_lock_iothread();
xemu_input_init();
qemu_mutex_unlock_iothread();
qemu_mutex_unlock_main_loop();

while (1) {
sdl2_gl_refresh(&sdl2_console[0].dcl);
assert(glGetError() == GL_NO_ERROR);
Expand Down

0 comments on commit 16dd084

Please sign in to comment.