Article View: comp.windows.x
Article #36814Re: XtSetKeyboardFocus
From: Gabe Begeddov
Date: Sun, 11 Feb 1990 22:14
Date: Sun, 11 Feb 1990 22:14
21 lines
1329 bytes
1329 bytes
/ hpcvlx:comp.windows.x / swick@ATHENA.MIT.EDU (Ralph R. Swick) / 8:05 am Feb 9, 1990 /
I suspect I've found a problem with XtSetKeyboardFocus.
Yep, you have.
This bug appears to be present in the X11-R4beta release.
And in the R4 release bits, even though this code was substantially
re-worked after beta (I'll not say by whom, to protect the guilty :-(.
The problem occurs when setting the keyboard focus for an unrealized
descendant of a realized shell. I can't think of an easy work-around,
except to make sure the descendant is realized before calling
XtSetKeyboardFocus. Unfortunately in the example you provided,
the call is internal to the Dialog widget so you've not much choice.
If you need a quick fix, add "&& XtIsRealized(widget)" to the
outermost conditional around the block of code in AddFocusHandler().
An official patch will be forthcoming.
----------
Technical Details
Message-ID:
<100920164@hpcvlx.cv.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!decwrl!shelby!unix!hplabs!hp-sdd!hp-pcd!hpcvlx!gabeReferences:
<7898@pt.cs.cmu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!decwrl!shelby!unix!hplabs!hp-sdd!hp-pcd!hpcvlx!gabe From: gabe@hpcvlx.cv.hp.com (Gabe Begeddov) Newsgroups: comp.windows.x Subject: Re: XtSetKeyboardFocus Message-ID: <100920164@hpcvlx.cv.hp.com> Date: 11 Feb 90 22:14:51 GMT References: <7898@pt.cs.cmu.edu> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 21