I have generated a simple test program for this problem: a graphics panel consisting of a GLX widget and a text input widget. I used to be able to get the focus to move from the text widget to the GLX widget (XFree86 4.1 - RH 7.1) as the cursor was moved but now (XFree86 4.3 onwards - RH9, SUSE9) the input focus stays stuck on the text widget when the cursor is moved into the GLX widget. The code is happy on SUN, IBM, SGI, HP.
Created attachment 2270 [details] Test program source - a panel containing a GLX widget & a text input widget Sample Makefile for test program: CFLAGS= -I/usr/X11R6/include LDFLAGS=-L/usr/X11R6/lib .c.o: gcc -c $(CFLAGS) $< all: xgltest xgltest.o: xgltest.c xgltest: xgltest.o gcc $(LDFLAGS) -o xgltest xgltest.o -lGLU -lGL -lGLw -lXm -lXt -lX11 -lm
Created attachment 2271 [details] Test program compiled on RH7.1 - This has expected behaviour
Created attachment 2272 [details] Test program compiled on RH9 - Shows the unexpected behaviour
Is it possible that some of the OpenMotif internals were changed in the meantime which require an update of the GLX widget code, too ?
This is a bug in motif. GLX doesn't handle X input events or deal with focus at all, so if the widget is not receiving events the problem is in the motif library you're using.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.