[openbox] OpenBox and Opera and Flash

Anthony Thyssen A.Thyssen at griffith.edu.au
Fri Jul 9 01:10:16 EDT 2010


On Thu, 8 Jul 2010 20:39:39 -0700
Dana Jansens <dana at orodu.net> wrote:
| On Thu, Jul 8, 2010 at 6:39 PM, Anthony Thyssen
| <A.Thyssen at griffith.edu.au> wrote:
| >
| > On Thu, 8 Jul 2010 10:24:40 +0200
| > vlad <vla at uni-bonn.de> wrote:
| > | On Thu, Jul 08, 2010 at 01:59:36PM +1000, Anthony Thyssen wrote:
| > | >
| > | > On Wed, 7 Jul 2010 12:30:39 +0200
| > | > Rafał Mużyło <galtgendo at gmail.com> wrote:
| > | > | Frankly, this problem sounds like a well known
| > | > | problem with Flash and recent gtk+ - recent Opera (10.60)
| > | > | will use gtk+, if it's not using KDE.
| > | > | It's about native gdk windows.
| > | > | Setting GDK_NATIVE_WINDOWS might help, but that's
| > | > | just a workaround - the real bug seems to lie in Flash.
| > | > |
| > | >
| > | > This problem is seen in quite a few applications, Including gedit!!!
| > | >
| > | > My problem is not setting GDK_NATIVE_WINDOWS that's fine.
| > | I have "export GDK_NATIVE_WINDOWS=1"
| > | in my opera startup script. However, setting or unsetting this doesn't
| > | make any difference.
| > | I don't think it's a gtk+ problem. I tried Opera with the X11
| > | and Qt toolkit and this issue also occurred.
| > | Removing the mouse "Client" bindings did the trick, but it's totally
| > | annoying, because I have now to click on the decorations to raise the
| > | window (like in dumb windows).
| > | It might be a flash bug, but why does this appear only in
| > | Opera and with OpenBox? As I said firefox and chromium does not have
| > | this problem.
| > |
| > As I mentioned for me Mautilius does not pass the environment variable
| > on.  If fact My understanding is that NO application is supposed to pass
| > this environment variable on.
| >
| > Now that probably includes Opera and its passing this environment variable
| > to its own sub-applications!
| >
| > I would suggest you study the process ("ps -we") listings of the processes
| > involved and check if the sub-process actually still has that
| > environment variable set.
| 
| Maybe you didn't have it set in the environment in which nautilus was
| launched.  It seems unlikely that it would remove it, though possible
| of course.
|

I have it set.  It appears in Nautilus.  But part of the GTK handling
is that you are supposed to remove it before calling the sub-application!

That I have checked and that is indeed what is happening...

Note in my Gnome setup natilus does not run by default as I have set
        gconftool-2 --set /apps/nautilus/preferences/show_desktop \
                    --type bool false

So I don't have it runing AT this moment.

My environment
   > env | grep GDK
   GDK_NATIVE_WINDOWS=1

Start nautilus
   > gnome-open .

Check its environemnt
   > pgrep nautilus
   30079
   > ps uwwe -p 30079 | tr ' ' '\012' | grep GDK
   GDK_NATIVE_WINDOWS=1

In nautilus double-click on a text file to start a gedit
Now as soon as I type any keyboard entry my mose pointer disappears
This i the GDK bug in gedit!!  It only re-appears if I try to
select some area of text (no point to guide you)
and move it (pointer re-appears)
   
Checking gedit environment
   > pgrep gedit
   30124
   > ps uwwe -p 30124 | tr ' ' '\012' | grep GDK

No environment variable even though it was launched by nautilus that
has this environemnt variable!  Arrrgghhhh

Kiil previous gedit (or it interfers with next test
   kill 30124

Manually launching however....
   > gedit t &

In this gedit my pointer does NOT dissapear!!!!
Checking its environment
   > pgrep gedit
   30170
   > ps uwwe -p 30170 | tr ' ' '\012' | grep GDK
   GDK_NATIVE_WINDOWS=1


So direct launch of nautilus or gedit --- no problems with GDK env set

But if nautilus launches gedit - the env var is removed -- problems
with mouse pointers


Nautilus does NOT pass on the GDK_NATIVE_WINDOWS=1 environement variable
just as it is recomened by the GDK development team, and the GDK program
launcher.

In other words....   A bloody pain in the proverbial 

Excuse my Australian!  For That is who I am!


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 --------------------------------------------------------------------------
      Do or do not.  There is no try...     Yoda,  "Return of the Jedi"
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.cit.griffith.edu.au/~anthony/


More information about the openbox mailing list