[gnome-shell/gnome-3-18] browser-plugin: Set windowless mode and don't claim to need XEmbed
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-18] browser-plugin: Set windowless mode and don't claim to need XEmbed
- Date: Thu, 12 Nov 2015 11:12:44 +0000 (UTC)
commit 88c1fa8a3e9f34bda512999618c7fe54b182af36
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Nov 11 12:30:24 2015 +0100
browser-plugin: Set windowless mode and don't claim to need XEmbed
NPAPI plugins are windowed by default, so we need to set
NPPVpluginWindowBool value to FALSE on startup. This way the browser
will not create a GtkSocket for a GtkPlug that we are not going to
create. It doesn't make sense to claim that we need XEmbed either.
https://bugzilla.gnome.org/show_bug.cgi?id=757940
browser-plugin/browser-plugin.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c
index e8b5cf6..290b224 100644
--- a/browser-plugin/browser-plugin.c
+++ b/browser-plugin/browser-plugin.c
@@ -218,6 +218,9 @@ NPP_New(NPMIMEType mimetype,
data = g_slice_new (PluginData);
instance->pdata = data;
+ /* set windowless mode */
+ funcs.setvalue(instance, NPPVpluginWindowBool, NULL);
+
data->proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE,
NULL, /* interface info */
@@ -1048,10 +1051,6 @@ NPP_GetValue(NPP instance,
*(NPObject**)value = funcs.createobject (instance, &plugin_class);
break;
- case NPPVpluginNeedsXEmbed:
- *(bool *)value = TRUE;
- break;
-
default:
;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]