Cannot raise windows from Java (toFront) - meta_window_same_application improvement

Bug #416058 reported by Derrick Rice on 2009-08-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
metacity (Ubuntu)
Ubuntu Desktop Bugs

Bug Description

Binary package hint: metacity

metacity 2.22.0 and others (package metacity 2.22.0-0ubuntu4)
Ubuntu 8.04 Hardy Heron and others

Gnome bug report:
Java bug report:

Java windows cannot be brought to the front of the screen because they are not identified as belonging to the same application by Metacity. Specifically, they do not have the same group. However, they do have the same leader. By expanding the behavior of meta_window_same_application, Java windows can be raised as expected.

Yes, this is a bug filed against Java, but it is not likely going to be fixed because:
 * It works for other window managers, including compiz, which have more advanced criteria for allowing windows to be raised.
 * The Java spec says that it "should" move windows to the top, but doesn't have to.

There is a simple patch supplied in the linked Gnome bug report (it doesn't work directly for 2.22, but the logic of the change can be used). This patch has not received attention from the Gnome team but is very small and relatively harmless. This should be included in the Ubuntu Metacity package until Gnome takes the change.

I don't see any harm in this change, but I also don't have a very intimate understanding of what meta_window_same_application is used for besides window raise behavior.

Derrick Rice (derrick-rice) wrote :

Patch from the Gnome bug adjusted for the 2.22 Metacity version.

Changed in metacity (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Triaged
Changed in metacity:
status: Unknown → New
Changed in metacity:
importance: Unknown → High
Changed in metacity:
status: New → Fix Released
Changed in metacity (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.