events: Make sure to check the event window of the MapNotify

This was lost in a rebase when killing off zaphod mode.
This commit is contained in:
Jasper St. Pierre 2014-03-28 13:46:00 -04:00
parent f4f529385a
commit e10fd19d24

View File

@ -1374,7 +1374,7 @@ handle_other_xevent (MetaDisplay *display,
/* NB: override redirect windows wont cause a map request so we
* watch out for map notifies against any root windows too if a
* compositor is enabled: */
if (window == NULL)
if (window == NULL && event->xmap.event == display->screen->xroot)
{
window = meta_window_x11_new (display, event->xmap.window,
FALSE, META_COMP_EFFECT_CREATE);