xwayland: Re-sync input focus when associating a surface to a window

When the MetaWindow is created we don't have the surface yet and thus
we can't set input focus to it so we need to try again when we get the
surface.
This commit is contained in:
Rui Matos 2014-04-08 18:39:15 +02:00
parent 2f229c3928
commit feca0fb512

View File

@ -62,6 +62,9 @@ associate_window_with_surface (MetaWindow *window,
* commit just breaks if we don't have a window associated with * commit just breaks if we don't have a window associated with
* it, we need to do a commit *again* here. */ * it, we need to do a commit *again* here. */
meta_wayland_surface_commit (surface); meta_wayland_surface_commit (surface);
/* Now that we have a surface check if it should have focus. */
meta_display_sync_wayland_input_focus (display);
} }
static gboolean static gboolean