[PATCH weston v2 09/24] xwm: detect legacy fullscreen on MapRequest

Pekka Paalanen ppaalanen at gmail.com
Mon Jan 16 15:29:41 UTC 2017


On Sun, 15 Jan 2017 14:44:05 +0100
Quentin Glidic <sardemff7+wayland at sardemff7.net> wrote:

> On 21/12/2016 15:40, Pekka Paalanen wrote:
> > From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> > 
> > The legacy fullscreen state needs to be detected at MapRequest time,
> > because that is when the X11 client has alredy set up the initial window
> > state.
> > 
> > Doing it at xserver_map_shell_surface() meant that it would be done as a
> > response to Xwayland creating the wl_surface and XWM receiving the
> > WL_SURFACE_ID ClientMessage, whichever came later. At that point the X11
> > client might still be setting things up in theory, though in practice
> > most of the X11 communication has already happened when
> > xserver_map_shell_surface() gets called.
> > 
> > The real reason for this is to clean up xserver_map_shell_surface() from
> > everything that would affect drawing the decorations. This patch is one
> > part of that clean-up.
> > 
> > The weston_output_weak_ref logic is not put into compositor.h, because
> > there are no other users for it at this time. We need to protect against
> > the output going away.  
> 
> Just to be clear: “protect” here means “not segfault”, just passing NULL 
> if the output got away in the meantime, right?

Yes, exactly.

> > 
> > A side-effect of this patch is that saved_width and saved_height will
> > now get overwritten also for legacy fullscreen windows. Previously, they
> > were left to zero as far as I could tell.
> > 
> > NOTE: This stops override-redirect legacy fullscreen windows from being
> > detected as fullscreen. MapRequest processing does not happen for OR
> > windows. These windows get detected as type XWAYLAND instead.
> > 
> > Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>  
> 
> Nice way to do it:
> Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>

Thank you!
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170116/5ead23ec/attachment.sig>


More information about the wayland-devel mailing list