[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3417.0. "Dialogue Box Input Focus Error" by TAV02::MELVYN () Mon Oct 01 1990 13:50

Dear All,

I have a customer who is getting an Xerror event received with the
error major opcode 42 - XSetInputFocus.


He does this by "fetching and managing" a dialogue box, and before 
the dialogue is displayed and can receive the input focus, he 
iconizes the top level widget which is the parent of the dialogue box.

Is the error because since the dialogue box is now also iconized, the
input focus has no where to go ?

The error does not occur if he let the dialogue box appear.

The customer is on vms 5.2, decwindows 1.

Any help or thoughts on workarounds is appreciated.

Thanks

Mel
T.RTitleUserPersonal
Name
DateLines
3417.1OXNARD::KLEEKen LeeMon Oct 01 1990 14:149
    From section 7.7.1 of the Xlib manual:
    
    "The specified focus window must be viewable at the time XSetInputFocus
    is called, or a BadMatch error results."
    
    An iconified window is not viewable.
    
    Ken
    
3417.2but the appl does not call XSetInputFocus...ALEXWS::ALEXBugs are coming in triplets ...Wed Oct 10 1990 07:2920

>    From section 7.7.1 of the Xlib manual:
>    
>    "The specified focus window must be viewable at the time XSetInputFocus
>    is called, or a BadMatch error results."
>    
>    An iconified window is not viewable.
>    

	This is very, very nice to know, but alas... does not help to solve the
case. The customer application has NO calls to XSetInputFocus. The latter is
called somewhere from the toolkit, i.e. DEC supported software.

	So this is nice to know why the error happens, and for now the customer
will put error handler to trap this kind of errors.

	Cheers,
		Alex