[haiku-appserver] Re: [Haiku-commits] r14621 - haiku/tru

  • From: Adi Oanca <adioanca@xxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Thu, 03 Nov 2005 16:55:08 +0200

Hi,

Stefano Ceccherini wrote:
I need to think of a nice way to do this. Adding a >hook to Layer (and WinBorder) which is called after the regions are build seems >a nice way to do it. That way you can set a flag in:
Layer/WinBorder::MovedByHook (to be renamed >::AboutToMoveHook())
, check for it in:
Layer/WinBorder::RegionsRebuiltHook()
then do your thing. :-)

Wait a sec, so MovedByHook() is called before the actual move, even ?

Yes. I need that for preparation. You have to move the frame(s) before you start rebuild visible regions

From the name, I would say it's called later.

OK, tell me a better one. :-)

BTW, I can also do all the work in the Layer/WinBorder::MoveBy() method,
> so don't worry about adding stuff YOU don't need yet,
> I'll eventually find my way into it :)

        Ah, OK, ::MoveBy() is good for you I think.

Yes, me :)

:-) I'll rename MovedByHook() into FrameMoved(). It's OK now? :-)

:-) I was talking about focus. You too? :-)

Yeah as it looks this problem only happens with one test app (Snes9x) :)

In my test app also. :-P


bye, Adi.

Other related posts: