mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
2f229c3928
commit
feca0fb512
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user