Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!think!news!garyo From: garyo@prometheus.think.com (Gary Oberbrunner) Newsgroups: comp.windows.x Subject: Questions Message-ID: Date: 21 Mar 89 00:13:08 GMT Sender: news@think.UUCP Organization: Thinking Machines Corporation, Cambridge Mass., USA Lines: 63 I have two questions: I am running X11R3 with no patches on a color Sun 4/110 OS 4.0 with uwm. (1) The buttons in the athena Dialog widget are *unbelievably* slow. Highlighting and de-highlighting are the most noticeably bad, but refreshing is also a killer. When I expose my 5 x-postit windows, for instance, they take about 15 seconds to redraw (during which the server response is nil). Is this normal? This does not happen on Sun-3s. Here's a small code sample I snarfed off the net today that demonstrates the same behavior. The buttons take ages to refresh and forever to highlight. Button-press highlighting in the buttons seems to be quick, however. ------------------------------------------------------------ #include #include #include void main(argc,argv) char ** argv; int argc; { Widget top, dia; Arg a[1]; XtSetArg (a[0], XtNvalue, "foo bar baz"); top = XtInitialize ("", "test", (XrmOptionDescRec *)NULL, 0, &argc, argv); dia = XtCreateManagedWidget ("dialog", dialogWidgetClass, top, (ArgList) a, (Cardinal) 1); XtDialogAddButton(dia, "foo", NULL, NULL); XtDialogAddButton(dia, "bar", NULL, NULL); XtRealizeWidget(top); XtMainLoop(); } ------------------------------------------------------------ When I enter a button, first the top highlight border is drawn, then the right, then the bottom, then the left border. The whole process takes about two seconds. =========================================================================== (2) Twm on my second (color) screen doesn't pass keyboard events to clients. It gets the keyboard events (I put in printfs), and it sets the focus to the selected window, but the key events still go to twm! Any ideas? Tests I should try? -- As always, Gary ----------------------------------------------------------------------------- Remember, Truth is not beauty; Gary Oberbrunner Information is not knowledge; Beauty is not love; {ames,harvard}!think!garyo Knowledge is not wisdom; Love is not music; garyo@think.com Wisdom is not truth; Music is the best. - FZ (617) 876-1111 x265