mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-26 17:00:11 +01:00
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.
This commit is contained in:
parent
0273b5716a
commit
bc6e1622b0
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue