summaryrefslogtreecommitdiff
path: root/www/mozplugger/files/patch-mozplugger.c
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2005-06-03 12:46:45 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2005-06-03 12:46:45 +0000
commit7ebcb96542c119c30f239acbfc15d083acdcf779 (patch)
tree7219c6b7a4b9e53851cd1d14736ac8b184351a58 /www/mozplugger/files/patch-mozplugger.c
parentUpgrade to version 2.1.6. (diff)
Add mozplugger 1.7.2, framework for loading web content in external
viewers. (actively maintained mozdev branch of plugger) PR: ports/81826 Submitted by: Loren M. Lang
Notes
Notes: svn path=/head/; revision=136723
Diffstat (limited to 'www/mozplugger/files/patch-mozplugger.c')
-rw-r--r--www/mozplugger/files/patch-mozplugger.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/mozplugger/files/patch-mozplugger.c b/www/mozplugger/files/patch-mozplugger.c
new file mode 100644
index 000000000000..bbf0cb982e77
--- /dev/null
+++ b/www/mozplugger/files/patch-mozplugger.c
@@ -0,0 +1,29 @@
+--- mozplugger.c.orig Sun Apr 17 05:19:59 2005
++++ mozplugger.c Fri Jun 3 20:55:32 2005
+@@ -568,6 +568,9 @@
+ if (cb(fname, data)) return 1;
+ }
+
++ snprintf(fname, sizeof(fname), PREFIX "/etc/%s", basename);
++ if (cb(fname, data)) return 1;
++
+ snprintf(fname, sizeof(fname), "/etc/%s", basename);
+ if (cb(fname, data)) return 1;
+
+@@ -1208,6 +1211,8 @@
+ *****************************************************************************/
+ NPError NPP_SetWindow(NPP instance, NPWindow* window)
+ {
++ XSetWindowAttributes attrib;
++
+ D("SetWindow\n");
+
+ if (!instance)
+@@ -1239,7 +1244,6 @@
+ D("Writing WIN 0x%x to fd %d\n", window->window, THIS->fd);
+ write(THIS->fd, (char *)window, sizeof(*window));
+
+- XSetWindowAttributes attrib;
+ attrib.override_redirect = True;
+ XChangeWindowAttributes(THIS->display, (Window)THIS->windata.window,
+ CWOverrideRedirect, &attrib);