[PATCH v3] activate toplevel fullscreen and menu surfaces
juan.j.zhao at linux.intel.com
juan.j.zhao at linux.intel.com
Fri Dec 9 02:58:22 PST 2011
From: Juan Zhao <juan.j.zhao at linux.intel.com>
Activate the toplevel, fullscrren and menu surfaces during mapping,
so that the launched applications can get the keyboard focus without
clicking on that window.
---
compositor/shell.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/compositor/shell.c b/compositor/shell.c
index 22004f9..5cd8637 100644
--- a/compositor/shell.c
+++ b/compositor/shell.c
@@ -835,6 +835,12 @@ map(struct wlsc_shell *base,
surface->y = 10 + random() % 400;
}
+ if ((surface_type == SHELL_SURFACE_TOPLEVEL ||
+ surface_type == SHELL_SURFACE_TRANSIENT ||
+ surface_type == SHELL_SURFACE_FULLSCREEN) && !shell->locked) {
+ activate(base, surface, compositor->input_device, wlsc_compositor_get_time());
+ }
+
surface->width = width;
surface->height = height;
if (!shell->locked || surface_type == SHELL_SURFACE_LOCK)
--
1.7.2.2
More information about the wayland-devel
mailing list