Skip to content

Commit

Permalink
vl: Move input init to exit_preconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Jul 28, 2023
1 parent c9eb5dd commit a503458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions softmmu/vl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2651,6 +2651,8 @@ 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: 0 additions & 6 deletions ui/xemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,12 +1540,6 @@ 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 a503458

Please sign in to comment.