[Pkg-tcltk-devel] Bug#514115: Bug#514115: tk: Tk and Tkinter applications broken in Metacity window manager

Sergei Golovan sgolovan at nes.ru
Wed Feb 4 17:04:44 UTC 2009


severity 514115 normal
thanks

On Wed, Feb 4, 2009 at 2:24 PM, Miguel Filgueiras <mig at ncc.up.pt> wrote:
>
> Applications implemented in Tcl/Tk and in Python using Tkinter
> fail to raise their own toplevel windows when working under the Metacity
> window manager. This is the case with gpsman and the practical result
> is that part of its functionality is broken (e.g., buttons that do
> nothing) and users can be unaware of new toplevels that are created
> under existing windows and are not visible by failing to be raised.
>
> You can retrieve small tests in Tcl/Tk and Python from
>
> http://www.ncc.up.pt/gpsman/tmp/testraise.tcl

I confirm that this test doesn't work in Metacity (but works in Sawfish).

>
> I submitted a bug report to Bugzilla
>
> http://bugzilla.gnome.org/show_bug.cgi?id=567528

There's a comment in Gnome bugzilla
(http://bugzilla.gnome.org/show_bug.cgi?id=567528#c10) which gives
possible workaround. Appears that Metacity doesn't understand that
these three toplevels belong to the same application. But adding [wm
group $w .] after creating toplevel $w makes Metacity happy. The
attached modified test script works in Metacity too.

So, I wouldn't blaim Tk developers for this behavior. Though it'd
probably better to add a few words about [raise] behavior to raise
manpage. And certainly the severity of this bug isn't "important".

Cheers!
-- 
Sergei Golovan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testraise2.tcl
Type: application/x-tcl
Size: 533 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-tcltk-devel/attachments/20090204/3192ab0f/attachment.tcl 


More information about the Pkg-tcltk-devel mailing list