From feca0fb5126c8575db088883030fdd8561efb874 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Tue, 8 Apr 2014 18:39:15 +0200 Subject: [PATCH] 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. --- src/wayland/meta-xwayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index b913f4927..a4ec03f6e 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -62,6 +62,9 @@ associate_window_with_surface (MetaWindow *window, * commit just breaks if we don't have a window associated with * it, we need to do a commit *again* here. */ 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