xserver: Ignore requests from X servers we didn't launch

This commit is contained in:
Kristian Høgsberg 2011-07-21 09:48:09 -07:00
parent 2669f72e95
commit a4ba1da03d
1 changed files with 3 additions and 0 deletions

View File

@ -537,6 +537,9 @@ xserver_set_window_id(struct wl_client *client, struct xserver *xserver,
struct wlsc_wm *wm = wxs->wm;
struct wlsc_wm_window *window;
if (client != wxs->client)
return;
window = wl_hash_table_lookup(wm->window_hash, id);
if (window == NULL) {
fprintf(stderr, "set_window_id for unknown window %d\n", id);