[haiku-development] Re: A few questions about the Haiku API

  • From: pulkomandy <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 4 Jun 2012 18:24:07 +0200

On Mon, Jun 04, 2012 at 09:28:12AM +0200, Stephan Aßmus wrote:
> >The second problem is about showing a BWindow without making it the
> >current focus, i've tried a lot of combinations of Show(), Hide(),
> >Minimize() ecc. but still i was unable to do it. I've also tried, with
> >suggestions of someone in irc, to make it MODAL and FLOATING but i had
> >not success also this time...i have the suspect that it's another
> >BeAPI limitation (i.e. to show a window without making it the current
> >focus is not possible)...any ideas?
> 
> Are you sure the window should have no focus? Sounds like a really
> bad idea. See the comments from the other about B_AVOID_FOCUS.

The idea (AFAIK) is to raise Caya chat window and make it visible above
others when a message gets in. If the window gets focus, it steals it
from the current active application. This is rather annoying when you're
trying to type something in another window and a contact is spamming
you.

-- 
Adrien.

Other related posts: