Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1412)

Unified Diff: chrome/plugin/plugin_thread.cc

Issue 384059: linux: work around "flash does not register any clicks" bug (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/plugin_thread.cc
diff --git a/chrome/plugin/plugin_thread.cc b/chrome/plugin/plugin_thread.cc
index 85caf168fab548aebccdc66e07277b7be37e9944..6106ee4b9527b4a3ff860f87242ebc023555a672 100644
--- a/chrome/plugin/plugin_thread.cc
+++ b/chrome/plugin/plugin_thread.cc
@@ -47,6 +47,12 @@ PluginThread::PluginThread()
}
argv[argc] = NULL;
char **argv_pointer = argv.get();
+
+ // Flash has problems receiving clicks with newer GTKs due to the
+ // client-side windows change. To be safe, we just always set the
+ // backwards-compat environment variable.
+ setenv("GDK_NATIVE_WINDOWS", "1", 1);
+
gtk_init(&argc, &argv_pointer);
for (size_t i = 0; i < args.size(); ++i) {
free(argv[i]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698