diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-30 09:59:56 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-30 09:59:56 -0400 |
commit | bc6e1622b048ae47ea0fe9d3edcf5f77ba7cebe2 (patch) | |
tree | f068deb2e29ae817b0d7fbb09e1db0709c308556 | |
parent | 0273b5716a1597aa385724b7229f9f07111cf86f (diff) |
xwm: Ignore map request for already mapped window
If a client sends another map request before the server has seen our
reply to the first map request event, we might get a map request for an
already mapped window. Just ignore that.
-rw-r--r-- | src/xwayland/window-manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c index 378daee..a2a12bd 100644 --- a/src/xwayland/window-manager.c +++ b/src/xwayland/window-manager.c @@ -460,6 +460,9 @@ weston_wm_handle_map_request(struct weston_wm *wm, xcb_generic_event_t *event) window = hash_table_lookup(wm->window_hash, map_request->window); + if (window->frame_id) + return; + weston_wm_window_read_properties(window); weston_wm_window_get_frame_size(window, &width, &height); |