[ tktoolkit-Bugs-676462 ] Overrideredirect window takes focus, Aqua

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ tktoolkit-Bugs-676462 ] Overrideredirect window takes focus, Aqua

SourceForge.net
Bugs item #676462, was opened at 2003-01-28 15:56
Message generated for change (Settings changed) made by hobbs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=676462&group_id=12997

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: 66. Aqua Window Operations
Group: obsolete: 8.4.1
>Status: Pending
>Resolution: Out of Date
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel A. Steffen (das)
Summary: Overrideredirect window takes focus, Aqua

Initial Comment:
A toplevel window with overrideredirect set takes the input focus
when raised in Aqua Tk 8.4.1. This kind of window is used for
implementing balloon help. It should not take keyboard and pointer
events when raised.  The raise command is intended to change
stacking order -- the window manager then determines whether it
gets the focus. Overrideredirect windows are not supposed to be
managed by the window manager and so should never be given
the focus unless explicitly done so by a Tk command.  The X11
and Windows Tk implementations do not give an overrideredirect
window the focus when it is raised.

The consequence of the current Aqua Tk 8.4.1 behaviour is that
balloon help windows steal the focus.  For example, in the Python
shell (IDLE) after typing a function name and an open parenthesis
a balloon shows the expected arguments to the function.  Since
this balloon window takes the keyboard focus when you continue
to type the function arguments they go to the balloon window
instead of the shell window.

Here are wish8.4 commands that demonstrates the problem.

toplevel .t ; wm withdraw .t ; wm overrideredirect .t 1
wm deiconify .t
wm raise .t

After the deiconify the toplevel (without a window frame) has the
keyboard focus.  Clicking on another window and then invoking
the "wm raise .t" command gives the focus back to the
overrideredirect window .t.

----------------------------------------------------------------------

>Comment By: Jeffrey Hobbs (hobbs)
Date: 2005-09-05 15:17

Message:
Logged In: YES
user_id=72656

Can this please be tried with 8.4.11?  I made corrections to
the way toplevel overrideredirect is handled as well that
should correct this problem.  Specifically for help windows,
you should use the special window style (OS X window class
mgmt) command:

        # Valid in Tk 8.4+
        if {[tk windowingsystem] eq "aqua"} {
            ::tk::unsupported::MacWindowStyle style $_top help none
        } else {
            wm overrideredirect $_top 1
        }

The issue being that OS X has many variant window classes.
Currently there doesn't appear to be a way to switch between
them without recreating the whole window either.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2003-09-22 15:44

Message:
Logged In: NO

Bug still present in 8.4.4.  Tom Goddard

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2003-09-22 15:36

Message:
Logged In: NO

In the example, the "wm raise .t" should be just "raise .t".

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2003-09-22 15:35

Message:
Logged In: NO

In the example, the "wm raise .t" should be just "raise .t".

----------------------------------------------------------------------

Comment By: Al Larson (speedboat)
Date: 2003-07-30 13:25

Message:
Logged In: YES
user_id=243036

I have the exact same problem with my bubble help. Very
annoying.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2003-02-05 11:38

Message:
Logged In: NO

Submitted by Tom Goddard
[hidden email]


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112997&aid=676462&group_id=12997


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Tcl-Bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/tcl-bugs