|
|
发表于 2006-6-19 23:39:12
|
显示全部楼层
请问怎么用啊?
请问怎么用啊?
Post by midx
http://lists.freedesktop.org/arc ... 06-June/000224.html
- From: Dan Winship <danw@novell.com>
- To: Kalle Kärkkäinen <kalle.karkkainen@intstream.fi>
- Cc: compiz@lists.freedesktop.org
- Subject: Re: [compiz] Java and compiz
- Date: Wed, 07 Jun 2006 12:22:25 -0400 (16:22 UTC)
- Kalle Kärkkäinen wrote:
- > There was nothing of this in the archives, so whats the plan?
- > Anybody working on this already? Has there been some research on the
- > matter? Do you already secretly know where the fault is?
- Yes, the problem is that some of the java toolkit code assumes that all
- windowmanagers reparent windows, and so if a wm is running, then the
- toolkit waits for new windows to be reparented before it starts handling
- certain events on them. Since compiz doesn't reparent windows, it ends
- up waiting forever.
- Sun already has a fix for the bug, but I don't know when it will ship.
- For SUSE Linux Enterprise Desktop 10, we're using the attached patch to
- xgl to work around the problem. (It fakes out the test java uses to see
- if a wm is running.) The patch could potentially cause problems with
- other apps, though we aren't aware of any. You'll also want the latest
- CVS compiz to fix some problems with window placement and other things
- with java windows.
- -- Dan
复制代码
differences between files attachment (xgl-java-wmhack.diff)
- --- dix/window.c 2006/05/29 18:12:27 1.1
- +++ dix/window.c 2006/05/29 18:15:15
- @@ -1265,8 +1265,12 @@
- result = EventSelectForWindow(pWin, client, (Mask )*pVlist);
- if (result)
- {
- - error = result;
- - goto PatchUp;
- + if (vmask != CWEventMask ||
- + (Mask)*pVlist != SubstructureRedirectMask)
- + {
- + error = result;
- + goto PatchUp;
- + }
- }
- pVlist++;
- break;
复制代码 |
|