[Xcircuit-dev] Annoying focus bug (Tcl/Tk version of XCircuit)
Wim Vereecken
wim.vereecken at esat.kuleuven.be
Thu Mar 5 10:55:27 PST 2009
Hi Tim,
In the Tcl/Tk version of xcircuit 3.6.xx (up to 3.6.145), there is an
fairly annoying bug which causes popup windows (such as the output
dialog box, shift-W) to 'popup' _under_ the main XCircuit window. The
reason for this seems to be the focus-stealing prevention feature of
some windows managers (KDE3.x on fedora enterprise/kubuntu/...).
FWIU, the KDE windows manager does not allow a toplevel window to grab
focus if the 'active window' (i.e. the main XCircuit window) is not
in focus. However, the popup windows (see wrapper.tcl) are created
without defining a group of related windows. Hence, the KDE window
manager is not informed that the main XCircuit window and its dialogs
belong together, so that popups will not raise after a "wm
deiconify/raise" call.
Possible solution for the .output dialog in wrapper.tcl (xc-3.6.145):
line 18:
--------
toplevel $name
wm title $name XCircuit
Add $name to group '.'
----------------------
toplevel $name
wm title $name XCircuit
wm group $name .
line 798:
---------
toplevel .output -bg beige
Add .output dialog to group '.'
-------------------------------
toplevel .output -bg beige
wm group .output .
As this 'bug' didn't annoy me that much for the other dialog boxes, I
haven't tested it for .filelist, .dialog, etc... However, I suppose
the solution is the same as described above.
Kind Regards,
Wim
See also http://lists.kde.org/?l=kwin&m=112178109619448&w=2
--
dr. Wim Vereecken
Analog/RF IC Design
KULeuven, Dept. ESAT-MICAS
Kasteelpark Arenberg 10
B-3001 Leuven
Belgium
Tel. +32 16 321070
FAX +32 16 321975
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the Xcircuit-dev
mailing list