diff options
author | Tiago Vignatti <tiago.vignatti@intel.com> | 2012-05-18 18:47:12 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-18 16:15:47 -0400 |
commit | 5cbb9c8a6b2651cca6a9b20572b4e6939068ce60 (patch) | |
tree | a3a6e776545a0ad2685ef3eb20094d55fe3bd372 /src | |
parent | fabcf8fb86993144c3afa949b6d201600d1a90d2 (diff) |
xserver: don't activate window always when mapping
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.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/xserver-launcher.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c index c8d916d..82b7693 100644 --- a/src/xserver-launcher.c +++ b/src/xserver-launcher.c @@ -875,7 +875,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", @@ -884,9 +883,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 * |