compositor: Remove meta_check_end_modal
"This is used when reloading plugins" Yeah, no.
This commit is contained in:
parent
8b2b65246a
commit
9ba49358e5
@ -70,6 +70,4 @@ void meta_end_modal_for_plugin (MetaScreen *screen,
|
|||||||
gint64 meta_compositor_monotonic_time_to_server_time (MetaDisplay *display,
|
gint64 meta_compositor_monotonic_time_to_server_time (MetaDisplay *display,
|
||||||
gint64 monotonic_time);
|
gint64 monotonic_time);
|
||||||
|
|
||||||
void meta_check_end_modal (MetaScreen *screen);
|
|
||||||
|
|
||||||
#endif /* META_COMPOSITOR_PRIVATE_H */
|
#endif /* META_COMPOSITOR_PRIVATE_H */
|
||||||
|
@ -497,25 +497,6 @@ meta_end_modal_for_plugin (MetaScreen *screen,
|
|||||||
compositor->modal_plugin = NULL;
|
compositor->modal_plugin = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is used when reloading plugins to make sure we don't have
|
|
||||||
* a left-over modal grab for this screen.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
meta_check_end_modal (MetaScreen *screen)
|
|
||||||
{
|
|
||||||
MetaDisplay *display = meta_screen_get_display (screen);
|
|
||||||
MetaCompositor *compositor = display->compositor;
|
|
||||||
|
|
||||||
if (compositor->modal_plugin &&
|
|
||||||
meta_plugin_get_screen (compositor->modal_plugin) == screen)
|
|
||||||
{
|
|
||||||
meta_end_modal_for_plugin (screen,
|
|
||||||
compositor->modal_plugin,
|
|
||||||
|
|
||||||
CurrentTime);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
after_stage_paint (ClutterStage *stage,
|
after_stage_paint (ClutterStage *stage,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
|
Loading…
Reference in New Issue
Block a user