[Xorg] Flash player plugin and Xserver

Keith Packard keithp at keithp.com
Mon Jun 7 16:28:21 PDT 2004


Around 17 o'clock on Jun 7, Douglas McMorris wrote:

> I can't get the flashplayer plugin from macromedia work with the kdrive
> Xserver.  Not sure whats going on, but heres the error I get... (note:
> same problem in mozilla... i just use epiphany)

You've got to hide the non-default visuals from flash -- it appears to 
assume the visual used for its window is the deepest available visual 
instead of actually checking.

I've got a kludge in Xlib that I'm using to make flash and mozilla always 
use the default visual (by removing all others from view).  Enable it
with:

	$ XLIB_SKIP_EXTRA_VISUALS=yes mozilla

Yes, flash is broken.  But then, mozilla is pretty nasty as well -- it 
selects my depth 24 visual now that I have one even though the root window 
is depth 16.  Fun with visuals!

-keith

Index: src/OpenDis.c
===================================================================
RCS file: /cvs/xlibs/X11/src/OpenDis.c,v
retrieving revision 3.22
diff -u -r3.22 OpenDis.c
--- a/src/OpenDis.c     17 Mar 2004 18:06:35 -0000      3.22
+++ b/src/OpenDis.c     7 Jun 2004 23:26:27 -0000
@@ -596,6 +596,13 @@
                        u.vp = (xVisualType *) (((char *) u.vp) +
                                                sz_xVisualType);
                    }
+                   if (dp->depth != sp->root_depth &&
+                       getenv ("XLIB_SKIP_EXTRA_VISUALS"))
+                   {
+                       Xfree (dp->visuals);
+                       dp->visuals = NULL;
+                       dp->nvisuals = 0;
+                   }
                } else {
                    dp->visuals = (Visual *) NULL;
                }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20040607/48c1ee19/attachment.pgp>


More information about the xorg mailing list