Schlichter.Wbst@XEROX.COM (12/03/88)
I wrote a directory and file browser for X11 using the Athena Toolkit /Widget set. I originally implemented it for X11R2 and it worked fine. Recently I ported it to X11R3 and I got it to work correctly with uwm, rtl window manager but there are problems with twm. The symptoms with twm are the following: for several commands I popup a dialog box (not a dialog widget) which consists of several widget hierarchies (command widgets within form widget within pane widget etc). I use XtCreatePopupShell (with overrideShellWidgetClass), XtPopup with XtGrabNonexclusive, and XtPopdown. I don't do anything special with respect to grabbing the mouse. After popping down the dialog box I cannot type into text widgets which are children of my top level application shell. It seems all input focus is directed to the father of the text widget rather than the text widget itself. I made an attempt to see what is going within twm. I noticed that twm does a lot of mouse grabbing (applying the operations "removegrab" and "insertfocusentry") when my dialog box is popped up (the other window managers I tried do not do that). I have the feeling that after the dialog box is popped down, the focuslist is not updated correctly by twm. I use a SUN 4-260 with OS 4.0 and X11R3, TWM Version 1.2 Sorry, that I did not pin down the problem more specifically, but did anybody else experience problems like the one above with twm? /hans arpanet: schlichter.wbst@xerox.com uucp: rochester!rocksanne!jhs
hallinan@gramian.harvard.edu (Peter Hallinan) (02/11/90)
I am trying to get an image processing program to work under X11R4 while using twm as the window manager. I have encountered 2 problems: 1) I would like to specify the position of the image windows on the screen. To do this I need to set the twm variable UsePPosition that is documented in its man page. In my .twmrc I have x x x UsePPosition "on" x x x Despite the fact that my syntax seems perfectly correct, I get the errors: twm: bad character `U', line 75 twm: syntax error, line 75 twm: errors found in "/usr/gramian/hallinan/.twmrc", twm aborting If I delete the line, twm works fine. Does anybody have a patch to fix this bug? 2) twm uses the default colormap while the image windows share a different colormap. Thus the images do not display correctly until I move the mouse into the image windows. Is there a way to alter the default colormap used by twm? Thanks in advance for any help. Peter W. Hallinan Aiken 229 hallinan@gramian.harvard.edu Harvard University Cambridge, MA 02138
jim@EXPO.LCS.MIT.EDU (Jim Fulton) (02/13/90)
UsePPosition "on" x x x Despite the fact that my syntax seems perfectly correct, I get the errors: twm: bad character `U', line 75 twm: syntax error, line 75 twm: errors found in "/usr/gramian/hallinan/.twmrc", twm aborting If I delete the line, twm works fine. Hmm, UsePPosition "on" has been in my .twmrc ever since I typed in the code (see sample-twmrc/jim.twmrc). Please send your .twmrc to me privately (and by Tuesday noon if you want a response within the next two weeks).