Is it a mistake ?

Everything related to the code /
Tout ce qui touche au code
Post Reply
milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Is it a mistake ?

Post by milipili » Thu Jul 10, 2008 4:22 pm

Could someone check the code in src/gfx/gui/area.cpp:122 ?
As you can see all indexes are i, except for this :

Code: Select all

vec_wnd[vec_z_order[0]]->get_focus
Is it a mistake or a feature ? :)
Damien Gerard
Ta3d & Yuni Developer

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Thu Jul 10, 2008 8:29 pm

it's a feature. This checks for a focus change. When you click on a window which isn't the top window then it reorders the windows to put the one that got the focus at the front so you can see it :P
=>;-D Penguin Powered

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Thu Jul 10, 2008 8:45 pm

Thanks. Just to be sure :)
Damien Gerard
Ta3d & Yuni Developer

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests