< prev index next >

src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c

Print this page




 660     }
 661 
 662     status =  XCreateWindow(dpy,
 663                             xwa.root,
 664                             xx, yy,
 665                             width, height,
 666                             0,
 667                             xwa.depth,
 668                             InputOutput,
 669                             adata->awt_visInfo.visual,
 670                             attribmask, &attrib);
 671     XSelectInput(dpy, status,
 672                  ExposureMask | StructureNotifyMask | EnterWindowMask |
 673                  LeaveWindowMask | VisibilityChangeMask);
 674     statusWindow = (StatusWindow*) calloc(1, sizeof(StatusWindow));
 675     if (statusWindow == NULL){
 676         THROW_OUT_OF_MEMORY_ERROR();
 677         return NULL;
 678     }
 679     statusWindow->w = status;
 680     //12-point font
 681     statusWindow->fontset = XCreateFontSet(dpy,
 682                                            "-*-*-medium-r-normal-*-*-120-*-*-*-*",

 683                                            &mclr, &mccr, &dsr);
 684     /* In case we didn't find the font set, release the list of missing characters */
 685     if (mccr > 0) {
 686         XFreeStringList(mclr);
 687     }
 688     statusWindow->parent = parent;
 689     statusWindow->on  = False;
 690     statusWindow->x = x;
 691     statusWindow->y = y;
 692     statusWindow->width = xwa.width;
 693     statusWindow->height = xwa.height;
 694     statusWindow->off_x = off_x;
 695     statusWindow->off_y = off_y;
 696     statusWindow->bWidth  = bw;
 697     statusWindow->statusH = height;
 698     statusWindow->statusW = width;
 699     statusWindow->rootH = xxwa.height;
 700     statusWindow->rootW = xxwa.width;
 701     statusWindow->lightGC = XCreateGC(dpy, status, valuemask, &values);
 702     XSetForeground(dpy, statusWindow->lightGC, light);




 660     }
 661 
 662     status =  XCreateWindow(dpy,
 663                             xwa.root,
 664                             xx, yy,
 665                             width, height,
 666                             0,
 667                             xwa.depth,
 668                             InputOutput,
 669                             adata->awt_visInfo.visual,
 670                             attribmask, &attrib);
 671     XSelectInput(dpy, status,
 672                  ExposureMask | StructureNotifyMask | EnterWindowMask |
 673                  LeaveWindowMask | VisibilityChangeMask);
 674     statusWindow = (StatusWindow*) calloc(1, sizeof(StatusWindow));
 675     if (statusWindow == NULL){
 676         THROW_OUT_OF_MEMORY_ERROR();
 677         return NULL;
 678     }
 679     statusWindow->w = status;
 680     //12, 13-point fonts
 681     statusWindow->fontset = XCreateFontSet(dpy,
 682                                            "-*-*-medium-r-normal-*-*-120-*-*-*-*," \
 683                                            "-*-*-medium-r-normal-*-*-130-*-*-*-*",
 684                                            &mclr, &mccr, &dsr);
 685     /* In case we didn't find the font set, release the list of missing characters */
 686     if (mccr > 0) {
 687         XFreeStringList(mclr);
 688     }
 689     statusWindow->parent = parent;
 690     statusWindow->on  = False;
 691     statusWindow->x = x;
 692     statusWindow->y = y;
 693     statusWindow->width = xwa.width;
 694     statusWindow->height = xwa.height;
 695     statusWindow->off_x = off_x;
 696     statusWindow->off_y = off_y;
 697     statusWindow->bWidth  = bw;
 698     statusWindow->statusH = height;
 699     statusWindow->statusW = width;
 700     statusWindow->rootH = xxwa.height;
 701     statusWindow->rootW = xxwa.width;
 702     statusWindow->lightGC = XCreateGC(dpy, status, valuemask, &values);
 703     XSetForeground(dpy, statusWindow->lightGC, light);


< prev index next >