qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Fullscreen Bug with GTK
@ 2014-10-04  8:18 Cedric Sodhi
  2014-10-06  8:06 ` Gerd Hoffmann
  0 siblings, 1 reply; 10+ messages in thread
From: Cedric Sodhi @ 2014-10-04  8:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel

Hello, we're setting up a cluster of Fedora boxes at my company. Qemu is
added because some partners may need or expect a fully functional
Windows environment. Everyone who expects Windows or might be irritated
by seeing anything else should remain oblivious to the fact that it's
running a VM. So it's crucial that fullscreen works. Along the same
lines, it's important that fullscreen can be activated by commandline
(so that Qemu starts in fullscreen and hasn't to be taken there by the
user).

There is a bug where the GTK (SDL appears to be broken due to some sdl2
incompatibility, as I understood) menu bar won't hide in fullscreen:

https://bugs.launchpad.net/qemu/+bug/1294898

A patch was provided by the initial reporter a long time ago. I was
hoping that this could receive a bit of attention, since 3.8 can now
widely be expected in the GTK3 line.

(Aside: I have no chance to try this now but I think the -full-screen
switch is also broken for GTK).

Thanks!
Cedric

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-04  8:18 [Qemu-devel] Fullscreen Bug with GTK Cedric Sodhi
@ 2014-10-06  8:06 ` Gerd Hoffmann
  2014-10-06  9:14   ` Dr. David Alan Gilbert
  2014-10-06 10:14   ` Cedric Sodhi
  0 siblings, 2 replies; 10+ messages in thread
From: Gerd Hoffmann @ 2014-10-06  8:06 UTC (permalink / raw)
  To: Cedric Sodhi; +Cc: qemu-devel

  Hi,

> There is a bug where the GTK (SDL appears to be broken due to some sdl2
> incompatibility, as I understood) menu bar won't hide in fullscreen:

SDL-1 support is still there.

> https://bugs.launchpad.net/qemu/+bug/1294898
> 
> A patch was provided by the initial reporter a long time ago.

Patch trades one bug for another.  Hiding the menu bar also kills the
accelerator keys, which is especially problematic for the fullscreen
hotkey as there is no way out of fullscreen mode then.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-06  8:06 ` Gerd Hoffmann
@ 2014-10-06  9:14   ` Dr. David Alan Gilbert
  2014-10-06  9:40     ` Gerd Hoffmann
  2014-10-06 10:14   ` Cedric Sodhi
  1 sibling, 1 reply; 10+ messages in thread
From: Dr. David Alan Gilbert @ 2014-10-06  9:14 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Cedric Sodhi, qemu-devel, crobinso

* Gerd Hoffmann (kraxel@redhat.com) wrote:
>   Hi,
> 
> > There is a bug where the GTK (SDL appears to be broken due to some sdl2
> > incompatibility, as I understood) menu bar won't hide in fullscreen:
> 
> SDL-1 support is still there.

Are you recommending building against SDL-1 even when SDL-2 is available?
(Does that lose you anything?)
(I've cc'd Cole in since Fedora's virt-preview is building it with 
SDL-2).

> > https://bugs.launchpad.net/qemu/+bug/1294898
> > 
> > A patch was provided by the initial reporter a long time ago.
> 
> Patch trades one bug for another.  Hiding the menu bar also kills the
> accelerator keys, which is especially problematic for the fullscreen
> hotkey as there is no way out of fullscreen mode then.

Dave
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-06  9:14   ` Dr. David Alan Gilbert
@ 2014-10-06  9:40     ` Gerd Hoffmann
  0 siblings, 0 replies; 10+ messages in thread
From: Gerd Hoffmann @ 2014-10-06  9:40 UTC (permalink / raw)
  To: Dr. David Alan Gilbert; +Cc: Cedric Sodhi, qemu-devel, crobinso

On Mo, 2014-10-06 at 10:14 +0100, Dr. David Alan Gilbert wrote:
> * Gerd Hoffmann (kraxel@redhat.com) wrote:
> >   Hi,
> > 
> > > There is a bug where the GTK (SDL appears to be broken due to some sdl2
> > > incompatibility, as I understood) menu bar won't hide in fullscreen:
> > 
> > SDL-1 support is still there.
> 
> Are you recommending building against SDL-1 even when SDL-2 is available?
> (Does that lose you anything?)

There are some rough edges still, I havn't flipped the default to SDL-2
yet in upstream qemu because of that.

So unless you depend on something new only provided by SDL2 (such as
multi-window support) your best bet is building with SDL1 instead.
Unfortunately we can't build both and switch at runtime.

Patches are accepted too ;)

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-06  8:06 ` Gerd Hoffmann
  2014-10-06  9:14   ` Dr. David Alan Gilbert
@ 2014-10-06 10:14   ` Cedric Sodhi
  2014-10-06 10:28     ` Gerd Hoffmann
  1 sibling, 1 reply; 10+ messages in thread
From: Cedric Sodhi @ 2014-10-06 10:14 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

> > https://bugs.launchpad.net/qemu/+bug/1294898
> >
> > A patch was provided by the initial reporter a long time ago.
> 
> Patch trades one bug for another. Hiding the menu bar also kills the
> accelerator keys, which is especially problematic for the fullscreen
> hotkey as there is no way out of fullscreen mode then.

How do you come to that conclusion? The reporter explicitly mentioned that removing the Menu disables the Accels and therefore he has provided a patch which attaches the Accels to the Window instead (which, in fact, is how it should be done).

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-06 10:14   ` Cedric Sodhi
@ 2014-10-06 10:28     ` Gerd Hoffmann
  2014-10-06 11:24       ` Peter Maydell
  0 siblings, 1 reply; 10+ messages in thread
From: Gerd Hoffmann @ 2014-10-06 10:28 UTC (permalink / raw)
  To: Cedric Sodhi; +Cc: qemu-devel

On Mo, 2014-10-06 at 12:14 +0200, Cedric Sodhi wrote:
> > > https://bugs.launchpad.net/qemu/+bug/1294898
> > >
> > > A patch was provided by the initial reporter a long time ago.
> > 
> > Patch trades one bug for another. Hiding the menu bar also kills the
> > accelerator keys, which is especially problematic for the fullscreen
> > hotkey as there is no way out of fullscreen mode then.
> 
> How do you come to that conclusion?

I've tried to fix that before, without success.

> The reporter explicitly mentioned that removing the Menu disables the
> Accels and therefore he has provided a patch which attaches the Accels
> to the Window instead (which, in fact, is how it should be done).

Oh, missed that detail.  /me recommends submitting the patches to
qemu-devel then (and cc me so I don't miss them).

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-06 10:28     ` Gerd Hoffmann
@ 2014-10-06 11:24       ` Peter Maydell
  2014-10-06 12:00         ` Cedric Sodhi
  2014-10-09 17:30         ` Cole Robinson
  0 siblings, 2 replies; 10+ messages in thread
From: Peter Maydell @ 2014-10-06 11:24 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Cedric Sodhi, QEMU Developers

On 6 October 2014 11:28, Gerd Hoffmann <kraxel@redhat.com> wrote:
> On Mo, 2014-10-06 at 12:14 +0200, Cedric Sodhi wrote:
>> The reporter explicitly mentioned that removing the Menu disables the
>> Accels and therefore he has provided a patch which attaches the Accels
>> to the Window instead (which, in fact, is how it should be done).
>
> Oh, missed that detail.  /me recommends submitting the patches to
> qemu-devel then (and cc me so I don't miss them).

...with the appropriate signed-off-by lines, which are
missing from the patch in the bug.

thanks
-- PMM

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-06 11:24       ` Peter Maydell
@ 2014-10-06 12:00         ` Cedric Sodhi
  2014-10-09 17:30         ` Cole Robinson
  1 sibling, 0 replies; 10+ messages in thread
From: Cedric Sodhi @ 2014-10-06 12:00 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Gerd Hoffmann, QEMU Developers

Sorry but whom do you expect to sign them off? I'm not a dev.
 
 
On 6 October 2014 11:28, Gerd Hoffmann <kraxel@redhat.com> wrote:
> On Mo, 2014-10-06 at 12:14 +0200, Cedric Sodhi wrote:
>> The reporter explicitly mentioned that removing the Menu disables the
>> Accels and therefore he has provided a patch which attaches the Accels
>> to the Window instead (which, in fact, is how it should be done).
>
> Oh, missed that detail. /me recommends submitting the patches to
> qemu-devel then (and cc me so I don't miss them).

...with the appropriate signed-off-by lines, which are
missing from the patch in the bug.

thanks
-- PMM

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-06 11:24       ` Peter Maydell
  2014-10-06 12:00         ` Cedric Sodhi
@ 2014-10-09 17:30         ` Cole Robinson
  2014-10-09 20:13           ` Cedric Sodhi
  1 sibling, 1 reply; 10+ messages in thread
From: Cole Robinson @ 2014-10-09 17:30 UTC (permalink / raw)
  To: Peter Maydell, Gerd Hoffmann; +Cc: Cedric Sodhi, QEMU Developers

On 10/06/2014 07:24 AM, Peter Maydell wrote:
> On 6 October 2014 11:28, Gerd Hoffmann <kraxel@redhat.com> wrote:
>> On Mo, 2014-10-06 at 12:14 +0200, Cedric Sodhi wrote:
>>> The reporter explicitly mentioned that removing the Menu disables the
>>> Accels and therefore he has provided a patch which attaches the Accels
>>> to the Window instead (which, in fact, is how it should be done).
>>
>> Oh, missed that detail.  /me recommends submitting the patches to
>> qemu-devel then (and cc me so I don't miss them).
> 
> ...with the appropriate signed-off-by lines, which are
> missing from the patch in the bug.
> 

The patches in the original report were not meant to be submitted as is, and
instead I hoped it would start a discussion, because they depend on APIs only
available with gtk3.8, and the fallback loses some usefulness.

Also the example patch isn't complete, since I think we would want to install
all the accelerators on the parent window, rather than just the fullscreen
one. Then in fullscreen mode, every accelerator would continue to work, which
matches SDL behavior IIRC. I think if someone fleshed out my patch examples it
should be fine for them to use their own Signed-off-by. I don't have any plans
to submit a patch myself in the short term.

Also there's other possible approaches. Like disabling accelerators entirely
when in fullscreen mode, and instead use a hiding toolbar like virt-manager
and virt-viewer do. danpb pointed out that gtk 3.10 has a GtkRevealer widget
that could probably be used for that without having to import the autodrawer
code that virt-viewer uses.

- Cole

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] Fullscreen Bug with GTK
  2014-10-09 17:30         ` Cole Robinson
@ 2014-10-09 20:13           ` Cedric Sodhi
  0 siblings, 0 replies; 10+ messages in thread
From: Cedric Sodhi @ 2014-10-09 20:13 UTC (permalink / raw)
  To: Cole Robinson; +Cc: Peter Maydell, Gerd Hoffmann, QEMU Developers

On Thu, Oct 09, 2014 at 01:30:00PM -0400, Cole Robinson wrote:
> On 10/06/2014 07:24 AM, Peter Maydell wrote:
> > On 6 October 2014 11:28, Gerd Hoffmann <kraxel@redhat.com> wrote:
> >> On Mo, 2014-10-06 at 12:14 +0200, Cedric Sodhi wrote:
> >>> The reporter explicitly mentioned that removing the Menu disables the
> >>> Accels and therefore he has provided a patch which attaches the Accels
> >>> to the Window instead (which, in fact, is how it should be done).
> >>
> >> Oh, missed that detail.  /me recommends submitting the patches to
> >> qemu-devel then (and cc me so I don't miss them).
> > 
> > ...with the appropriate signed-off-by lines, which are
> > missing from the patch in the bug.
> > 
> 
> The patches in the original report were not meant to be submitted as is, and
> instead I hoped it would start a discussion, because they depend on APIs only
> available with gtk3.8, and the fallback loses some usefulness.
> 
> Also the example patch isn't complete, since I think we would want to install
> all the accelerators on the parent window, rather than just the fullscreen
> one. Then in fullscreen mode, every accelerator would continue to work, which
> matches SDL behavior IIRC. I think if someone fleshed out my patch examples it
> should be fine for them to use their own Signed-off-by. I don't have any plans
> to submit a patch myself in the short term.
> 
> Also there's other possible approaches. Like disabling accelerators entirely
> when in fullscreen mode, and instead use a hiding toolbar like virt-manager
> and virt-viewer do. danpb pointed out that gtk 3.10 has a GtkRevealer widget
> that could probably be used for that without having to import the autodrawer
> code that virt-viewer uses.
> 
> - Cole

Two things: First of all I think we can safely assume that said GTK
version is supported by everyone who uses that version of Qemu.

Second, I think your patch is just perfect the way it is. It seems
perfectly reasonable to have ONLY the Fullscreen shortcut work in
Fullscreen and nothing else. I don't see any point in "zoom in" or
"mouse grap" to function in fullscreen mode. Fullscreen is to simulate
the environment as convincingly as possible in my opinion (at least
that's what I'm trying to achieve).

The least thing I would want is an auto-hiding menubar, if you're
thinking of one which shows up when you move the cursor to the top.
That's as unpractical as it may get (I find those "auto" gimmicks pretty
annoying everywhere. Gnome's magic shell corner is irritating enough)

Please sign off the patch, in my opinion it's perfect and in any case
it's better than the way it currently is.

Thank you.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-10-09 20:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-04  8:18 [Qemu-devel] Fullscreen Bug with GTK Cedric Sodhi
2014-10-06  8:06 ` Gerd Hoffmann
2014-10-06  9:14   ` Dr. David Alan Gilbert
2014-10-06  9:40     ` Gerd Hoffmann
2014-10-06 10:14   ` Cedric Sodhi
2014-10-06 10:28     ` Gerd Hoffmann
2014-10-06 11:24       ` Peter Maydell
2014-10-06 12:00         ` Cedric Sodhi
2014-10-09 17:30         ` Cole Robinson
2014-10-09 20:13           ` Cedric Sodhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).