[PATCH weston 05/10] xserver: don't activate window always when mapping
Kristian Høgsberg
hoegsberg at gmail.com
Fri May 18 13:17:45 PDT 2012
On Fri, May 18, 2012 at 06:47:12PM +0300, Tiago Vignatti wrote:
> set_window_id is the one responsible for mapping the window and the shell will
> decide whether a surface needs to be activated or not. But not always at
> MapNotify. That was causing ugly behavior on non-toplevel windows.
You're right, that's not the right place to do that. Committed.
Kristian
>
> Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
> ---
> src/xserver-launcher.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c
> index de90a46..838530d 100644
> --- a/src/xserver-launcher.c
> +++ b/src/xserver-launcher.c
> @@ -775,7 +775,6 @@ static void
> weston_wm_handle_map_notify(struct weston_wm *wm, xcb_generic_event_t *event)
> {
> xcb_map_notify_event_t *map_notify = (xcb_map_notify_event_t *) event;
> - struct weston_wm_window *window;
>
> if (our_resource(wm, map_notify->window)) {
> fprintf(stderr, "XCB_MAP_NOTIFY (window %d, ours)\n",
> @@ -784,9 +783,6 @@ weston_wm_handle_map_notify(struct weston_wm *wm, xcb_generic_event_t *event)
> }
>
> fprintf(stderr, "XCB_MAP_NOTIFY (window %d)\n", map_notify->window);
> -
> - window = hash_table_lookup(wm->window_hash, map_notify->window);
> - weston_wm_activate(wm, window, XCB_TIME_CURRENT_TIME);
> }
>
> static xcb_render_pictforminfo_t *
> --
> 1.7.9.5
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list