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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user