[PATCH] ui/gtk: Fix resolution change in fullscreen

2021-12-19 Thread Jindřich Makovička
When the guest resolution changes and the UI is in full screen, do not update the size hints. The gfx.scale_x and gfx.scale_y variables are still wrong as they will be only recomputed on gd_draw_event. Just keep the window in fullscreen mode instead. Signed-off-by: Jindřich Makovička --- ui

Re: [Qemu-devel] [PATCH v4] SDL2 various fixes

2018-01-01 Thread Jindřich Makovička
On Fri, 17 Nov 2017 12:22:55 +0100 Jindrich Makovicka wrote: > Hi, > > here is a respin of the three remaining patches, with checkpatch > errors corrected. > > Also added the Fixes: line for "sdl2 uses surface relative > coordinates", and an explaining comment to "sdl2: Ignore UI hotkeys". > >

Re: [Qemu-devel] [PATCH 1/8] sdl2: Fix broken display updating after the window is hidden

2017-11-13 Thread Jindřich Makovička
Seems we are trading one issue for another here, due to bugs in > SDL :( Does this happen for you with the whole series applied, or just the 1st patch? Especially [PATCH 8/8] sdl2: Ignore UI hotkeys after a focus change when GUI modifier is held can have an impact on the behavior you described. Regards, -- Jindřich Makovička

Re: [Qemu-devel] [PATCH 4/7] sdl2: Only accept the hotkeys on the main window

2017-11-08 Thread Jindřich Makovička
Hi Gerd, I will try to respin the patch set during the weekend. Regards, Jindrich On Wed, Nov 8, 2017 at 11:10 AM Gerd Hoffmann wrote: > On Sun, Nov 05, 2017 at 09:10:45AM -0500, Cole Robinson wrote: > > On 11/02/2017 01:12 PM, Jindřich Makovička wrote: > > > This fixes

Re: [Qemu-devel] [PATCH 4/7] sdl2: Only accept the hotkeys on the main window

2017-11-02 Thread Jindřich Makovička
(gui_key_modifier_pressed && !ev->key.repeat && > > qemu_console_is_graphic(scon->dcl.con)) { > > switch (ev->key.keysym.scancode) { > > case SDL_SCANCODE_2: > > case SDL_SCANCODE_3: > -- Jindřich Makovička

Re: [Qemu-devel] [PATCH 5/7] sdl2 uses surface relative coordinates

2017-11-02 Thread Jindřich Makovička
reaks the pointer in case window size doesn't match > surface size. > > cheers, > Gerd > > -- Jindřich Makovička

Re: [Qemu-devel] [PATCH 3/7] sdl2: Do not hide the cursor on auxilliary windows

2017-10-24 Thread Jindřich Makovička
On Mon, 23 Oct 2017 23:38:16 -0300 Philippe Mathieu-Daudé wrote: > Hi Jindrich, > > This looks like 2 different patches, can you split? Hi, here is the split version. > > On 10/23/2017 06:07 PM, Jindrich Makovicka wrote: > > --- > > ui/sdl2.c | 41 ++--- >

Re: [Qemu-devel] [PATCH] sdl: shorten the GUI refresh interval when mouse or keyboard is active

2016-01-12 Thread Jindřich Makovička
Hi Gerd, On Mon, 11 Jan 2016 14:10:16 +0100 Gerd Hoffmann wrote: > Hi, > > For SDL2 this ... > > > > +static int idle_counter; > > ... should be store in ... > > > > void sdl2_poll_events(struct sdl2_console *scon) > > ... sdl2_console, otherwise it will not work as intended in case

[Qemu-devel] [PATCH] sdl: shorten the GUI refresh interval when mouse or keyboard is active

2015-12-05 Thread Jindřich Makovička
Hi, some years ago, I submitted a patch improving the mouse response in SDL ui, but it got lost under the sands of time. Here is an updated version for both SDL and SDL2 frontends. With the change applied, when the gui receives a keyboard or mouse event, it shortens the gui refresh interval to 10

[Qemu-devel] [PATCH] qcow2: Handle EAGAIN returned from update_refcount

2015-06-23 Thread Jindřich Makovička
Fixes a crash during image compression Signed-off-by: Jindřich Makovička --- block/qcow2-refcount.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 0632fc3..b0ee42d 100644 --- a/block/qcow2

[Qemu-devel] [PATCH] Fix occassional crashes during qcow2 recompression

2015-06-23 Thread Jindřich Makovička
Hi, the following patch adds missing EAGAIN handling in qcow2 code. When the conditions for throwing EAGAIN from the refcount allocator are met, qcow-img image recompression fails with "error while writing sector". Jindřich Makovička (1): qcow2: Handle EAGAIN returned from updat

[Qemu-devel] [PATCH] qcow2: Handle EAGAIN returned from update_refcount

2015-06-23 Thread Jindřich Makovička
Fixes a crash during image compression Signed-off-by: Jindřich Makovička --- block/qcow2-refcount.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 0632fc3..f8d18e7 100644 --- a/block/qcow2

[Qemu-devel] [PATCH] alsa: fix 100% CPU load when idle w/ dmix

2010-10-17 Thread Jindřich Makovička
Hi, when using dmix as an ALSA output, the output cannot be polled and ALSA (snd_pcm_poll_descriptors) returns the event mask set to POLLIN instead. As this event mask is passed to the main loop, the select() in main_loop_wait() never waits, because the output file descriptor is never read. So, qe