Revert "MetaPluginManager: don't try to deference a NULL pointer when processing events"

This reverts commit 74565380aa.
This commit is contained in:
Marco Trevisan (Treviño) 2017-10-20 03:23:28 -05:00
parent 5d7deab6da
commit 6f54bab0a8

View File

@ -153,17 +153,10 @@ meta_plugin_manager_event_simple (MetaPluginManager *plugin_mgr,
MetaWindowActor *actor,
MetaPluginEffect event)
{
MetaPlugin *plugin;
MetaPluginClass *klass;
MetaDisplay *display;
gboolean retval;
g_return_val_if_fail (plugin_mgr, FALSE);
plugin = plugin_mgr->plugin;
klass = META_PLUGIN_GET_CLASS (plugin);
display = plugin_mgr->compositor->display;
retval = FALSE;
MetaPlugin *plugin = plugin_mgr->plugin;
MetaPluginClass *klass = META_PLUGIN_GET_CLASS (plugin);
MetaDisplay *display = plugin_mgr->compositor->display;
gboolean retval = FALSE;
if (display->display_opening)
return FALSE;