sdl: Fix block prevention of SDL_WM_GrabInput
Consistently check for SDL_APPINPUTFOCUS before trying to grab the inputfocus. Just checking for SDL_APPACTIVE doesn't work. Moving the check tosdl_grab_start allows for some consolidation.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
Revert "Handle SDL grabs failing (Mark McLoughlin)"
This reverts commit 6bb816031f8bc0aafc3476e6dfa4293ee3a5f106.
SDL_WM_GrabInput does not reliably bail out if grabbing is impossible.So if we get here, we already lost and will block. But this can nolonger happen due to the check in sdl_grab_start. So this patch became...
sdl: Grab input on end of non-absolute mouse click
By grabbing the input already on button down, we leave the button inthat state for the host GUI. Thus it takes another click after releasingthe input again to synchronize the mouse button state.
Avoid this by grabbing on button up....
sdl: Limit sdl_grab_end in handle_activation to Windows hosts
There are scenarios on Linux with some SDL versions wherehandle_activation is continuous invoked with state = SDL_APPINPUTFOCUSand gain = 0 while we grabbed the input. This causes a ping-pong when we...
optionroms: Silence intermediate file removal
The build process of optionroms spits out an "rm ..." line. Moreover, itremoves all .o files that can be handy for debugging purposes. Sodisable automatic intermediate removal.
main-loop: Fix SetEvent() on uninitialized handle on win32
The attribute((constructor)) init_main_loop() automatically getcalled if qemu-tool.o is linked in. On win32, this leads toa qemu_notify_event() call which attempts to SetEvent() on a HANDLE that...
qemu-option: Introduce default mechanism
This adds qemu_opts_set_defaults, an interface provide default valuesfor a QemuOpts set. Default options are parsed from a string and thenprepended to the list of existing options, or they serve as the soleQemuOpts set....
mc146818rtc: Use lost_tick_policy property
Allow to configure the MC146818 RTC via the new lost tick policyproperty and replace rtc_td_hack with this mechanism.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Improve default machine options usability
So far we overwrite the machine options completely with defaults if noaccel=value is provided. More user friendly is to fill in onlyunspecified options. The new qemu_opts_set_defaults enables this.
sdl: Do not grab mouse on mode switch while in background
When the mouse mode changes to absolute while the SDL windows is not infocus, refrain from grabbing the input. It would steal from some otherwindow.
View all revisions | View revisions
Also available in: Atom