Fix the input region not working properly

The input region was set on the shaped texture, but the shaped texture
was never picked properly, as it was never set to be reactive. Move the
pick implementation and reactivity to the MetaSurfaceActor, and update
the code everywhere else to expect a MetaSurfaceActor.
This commit is contained in:
Jasper St. Pierre
2014-02-18 21:27:20 -05:00
parent e62fe956fd
commit 1e6b3faa83
8 changed files with 109 additions and 127 deletions

View File

@ -1682,8 +1682,12 @@ get_window_for_event (MetaDisplay *display,
return display->grab_window;
source = clutter_event_get_source (event);
if (META_IS_WINDOW_ACTOR (source))
return meta_window_actor_get_meta_window (META_WINDOW_ACTOR (source));
if (META_IS_SURFACE_ACTOR (source))
{
MetaWaylandSurface *surface = meta_surface_actor_get_surface (META_SURFACE_ACTOR (source));
g_assert (surface != NULL);
return surface->window;
}
return NULL;
}