xdnd: Remove XDnD handling code and receive DnD signals from mutter

Move the XDnD handling code to mutter, and receive DnD handling signals from
mutter directly.

https://bugzilla.gnome.org/show_bug.cgi?id=765003
This commit is contained in:
Hyungwon Hwang
2016-12-24 17:56:52 +09:00
committed by Jonas Ådahl
parent 46f3712421
commit 4b80cbe1cd
3 changed files with 5 additions and 107 deletions

View File

@@ -369,9 +369,9 @@ static gboolean
gnome_shell_plugin_xevent_filter (MetaPlugin *plugin,
XEvent *xev)
{
#ifdef GLX_INTEL_swap_event
GnomeShellPlugin *shell_plugin = GNOME_SHELL_PLUGIN (plugin);
#ifdef GLX_INTEL_swap_event
if (shell_plugin->have_swap_event &&
xev->type == (shell_plugin->glx_event_base + GLX_BufferSwapComplete))
{
@@ -396,15 +396,6 @@ gnome_shell_plugin_xevent_filter (MetaPlugin *plugin,
}
#endif
if (meta_is_wayland_compositor ())
return FALSE;
/*
* Pass the event to shell-global for XDND
*/
if (_shell_global_check_xdnd_event (shell_plugin->global, xev))
return TRUE;
return FALSE;
}