widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #13431
Re: [Merge] lp:~widelands-dev/widelands/bug-keyboard-after-save-delete into lp:widelands
I did a quick check with the XCode debugger and found thats
this optimization ist hit quite often. But we still must
do this, to clean up the focushandling along the complete
hierarchy, sometimes?
OTOH the parent hierarchy should not be hat deep.
Lets do another check in game ... found that the depth of window hierarchiy
in a game is about 4 so this might be about 3 extra call on every
focus change in game.
The hirarchy of parents atually is a tree,
like when the dialog is open (* is the focus)
Outer Windows <- Dialog <- Table <- ListeItem
<- Confirm Dialog <- *Button
ANd when closed:
Outer Windows <- *Dialog <- Table <- *ListeItem
As the focus is now (incositently) on Dialog and ListItem Keypresses
will caught by the Dialog. I had expect there is perhaps a stack of
Elemtns that should get the focus.
Uhm I still dont know Wdielands GUI good enough.
Still Feel free to commit this.
--
https://code.launchpad.net/~widelands-dev/widelands/bug-keyboard-after-save-delete/+merge/345469
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-keyboard-after-save-delete.
References