[mutter/wayland] xwayland: Re-sync input focus when associating a surface to a window
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] xwayland: Re-sync input focus when associating a surface to a window
- Date: Wed, 9 Apr 2014 09:25:08 +0000 (UTC)
commit feca0fb5126c8575db088883030fdd8561efb874
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Apr 8 18:39:15 2014 +0200
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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
index b913f49..a4ec03f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]