My old friend has visited: the wiggly mouse problem; on mac 3.1M5 [message #452342] |
Thu, 17 March 2005 10:10  |
Eclipse User |
|
|
|
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
|
|
|
|
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 12:59  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03631 seconds