[comp.windows.x] SetInputFocus with RevertToNone

sally@ncrorl.Orlando.NCR.COM (Sally VanderHeiden) (09/27/90)

I have an application that does a SetInputFocus with revert set to none.  When  the client is killed, keyboard focus is lost.  The only solution I have come up with to date is to change revert to = PointerRoot when the client is requesting RevertToNone.  What is the intended purpose of setting revert = None and in whatsituations would this be used?  Does anybody know of a more viable solution to  the problem?

dshr@eng.sun.COM (David Rosenthal) (09/29/90)

> I have an  application that  does a  SetInputFocus with  revert set to
> none.  When  the client  is killed,  keyboard focus  is lost.   The only
> solution I  have  come  up  with  to  date  is  to  change  revert  to =
> PointerRoot when  the client  is requesting  RevertToNone.   What is the
> intended purpose of setting  revert =  None and  in whatsituations would
> this be  used?    Does  anybody know  of a  more viable  solution to the
> problem?

See the ICCCM,  sections 4.2.7 & 6.1.

	David.