discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Focus Problem ?


From: Benhur Stein
Subject: Re: Focus Problem ?
Date: Thu, 7 Nov 2002 16:50:28 -0200
User-agent: Internet Messaging Program (IMP) 3.0

Citando Adam Fedor <fedor@doc.com>:

> I could probably look at it later, but one thing you can do to debug 
> focus problems is run the app like this:
> 
> openapp MyApp.app --GNU-Debug=Focus
> 

I've made some experiments with this, but I didn't dig into the code to
interpret it.

With Terminal:

When the application is open, I can't get it's window to get the keyboard focus
until I create a second window (with the mouse).
Then, with two or more windows, if I click in the window title, the app is
selected if it wasn't, but the key window is the last key window, not the 
one that has been clicked. Only when clicking inside the window is that the key
focus changes to that window.
The logs with --GNU-Debug=Focus are:

When the key is on window 13 and I click on windows 12's title, it says:
2002-11-07 18:41:58.534 Terminal[2696] take focus:12 (current=13 key=13)
keystrokes go to window 13

If I click over window 13 title, I get:
2002-11-07 18:42:07.243 Terminal[2696] take focus:13 (current=13 key=13)

Clicking inside window 12:
2002-11-07 18:43:38.384 Terminal[2696] Setting focus to 12
2002-11-07 18:43:38.389 Terminal[2696] Focus went to 12 (xwin 41943245)
2002-11-07 18:43:38.389 Terminal[2696] 41943291 lost focus on 13
2002-11-07 18:43:38.389 Terminal[2696] 41943245 got focus on 12
and only now the keystrokes go to window 12.

Also, when selecting another app (be it a GNUstep one or not), the Terminal's
window that has the key focus will have it's title in an intermediate color.
(As if a panel of Terminal had been selected).

Anyway, I don't know haw to interpret this.

Benhur




reply via email to

[Prev in Thread] Current Thread [Next in Thread]