Index: webkit/glue/plugins/plugin_host.cc |
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc |
index 40b2e1e16bab6170e00a68992f49070a356bc6fc..0a1b93c5ab3d1b5e8cac5ab9deafec7f7f5bcdec 100644 |
--- a/webkit/glue/plugins/plugin_host.cc |
+++ b/webkit/glue/plugins/plugin_host.cc |
@@ -6,6 +6,11 @@ |
#include "webkit/glue/plugins/plugin_host.h" |
+#if defined(OS_LINUX) |
+#include <gdk/gdk.h> |
+#include <gdk/gdkx.h> |
+#endif |
+ |
#include "base/file_util.h" |
#include "base/logging.h" |
#include "base/scoped_ptr.h" |
@@ -751,6 +756,9 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void *value) { |
*reinterpret_cast<NPBool*>(value) = TRUE; |
rv = NPERR_NO_ERROR; |
break; |
+ case NPNVxDisplay: |
+ *static_cast<Display **>(value) = GDK_DISPLAY(); |
Evan Martin
2009/07/15 16:49:53
Does this help the NULL-display case?
|
+ break; |
#endif |
case NPNVSupportsWindowless: |
{ |