Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » My old friend has visited: the wiggly mouse problem; on mac 3.1M5
My old friend has visited: the wiggly mouse problem; on mac 3.1M5 [message #452342] Thu, 17 March 2005 15:10 Go to next message
Patrick Mueller is currently offline Patrick MuellerFriend
Messages: 13
Registered: July 2009
Junior Member
And I've often run into this weird problem; I call it the 'wiggly mouse
problem'. The symptoms are that your UI is non-responsive unless the
mouse is moved. For example, take a simple, empty shell. Click on the
trimming's close button, and it won't do anything *until you move the
mouse*. That is, click, release, nothing happens. Wait a few seconds.
Now move the mouse ever so slightly, the window closes.

This is on Mac, 3.1M5. Odd thing is that I *do not* see this problem if
I use Eclipse's 'Launch SWT App' functionality, only if I run it as a
typical .app (that I have built by hand).

Obviously there is something slightly different between the two
launches, and I just haven't figured it out yet. Figured I'd ask before
diving in to figure it out. The only thing I can see so far (by
browsing the mac launcher code) is that it's passing in an -Xvm (or
maybe it was -Xxvm or something) option that I'm not passing in my
homebrew .app.

I should also mention my .app is using the JavaApplicationStub with the
'run on first thread option'.

--
Patrick_Mueller@us.ibm.com
Re: My old friend has visited: the wiggly mouse problem; on mac 3.1M5 [message #452350 is a reply to message #452342] Thu, 17 March 2005 17:36 Go to previous messageGo to next message
Patrick Mueller is currently offline Patrick MuellerFriend
Messages: 13
Registered: July 2009
Junior Member
Patrick Mueller wrote:
> And I've often run into this weird problem; I call it the 'wiggly mouse
> problem'. ...

I just debugged the launcher, and the only obvious difference is that
the app is launched two different ways, between the eclipse launcher and
launching the .app:

eclipse launcher: uses Runtime.exec() against the java binary deep in
the bowels of Framework

my .app: traditional .app launcher, using JavaApplicationStub

Bummer. I assume I could change my .app to launch against the java
binary; I've noticed that Azureus (sp?) does something wacky like this
in it's .app setup. But it also implies a bit of hard-coding I'd like
to not have to do. Tiger's out soon, ya know!

I need to try the bundle builder tool as well; maybe it does something
that makes this work right ...

--
Patrick_Mueller@us.ibm.com
nailed it: Re: My old friend has visited: the wiggly mouse problem; on mac 3.1M5 [message #452353 is a reply to message #452350] Thu, 17 March 2005 17:59 Go to previous message
Patrick Mueller is currently offline Patrick MuellerFriend
Messages: 13
Registered: July 2009
Junior Member
Patrick Mueller wrote:
> Patrick Mueller wrote:
>
>> And I've often run into this weird problem; I call it the 'wiggly
>> mouse problem'. ...
>
>
> I just debugged the launcher, and the only obvious difference is that
> the app is launched two different ways, between the eclipse launcher and
> launching the .app:

I exported my app with the bundle builder to see what it did, and
noticed this difference. In my Info.plist, I had done this:

<key>Java</key>
<dict>
...
<key>VMOptions</key>
<array>
<string>-XstartOnFirstThread</string>
</array>
...

The bundle builder did it this way:

<key>Java</key>
<dict>
...
<key>StartOnMainThread</key>
<true/>
...

And that one worked; no more wiggly mouse!

--
Patrick_Mueller@us.ibm.com
Previous Topic:Regarding ComboBoxCellEditor...
Next Topic:Palette Item Drop
Goto Forum:
  


Current Time: Tue Oct 22 08:24:29 GMT 2019

Powered by FUDForum. Page generated in 0.02112 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top