comparison src/gui_xmebw.c @ 1206:76130176cf41

updated for version 7.1b
author vimboss
date Thu, 10 May 2007 17:46:55 +0000
parents d8af28dbfb80
children c7654c4db8fd
comparison
equal deleted inserted replaced
1205:b05620bdba29 1206:76130176cf41
48 48
49 /* Provide some missing wrappers, which are missed from the LessTif 49 /* Provide some missing wrappers, which are missed from the LessTif
50 * implementation. Also missing in Motif 1.2 and earlier. 50 * implementation. Also missing in Motif 1.2 and earlier.
51 * 51 *
52 * We neither use XmeGetPixmapData or _XmGetPixmapData, since with LessTif the 52 * We neither use XmeGetPixmapData or _XmGetPixmapData, since with LessTif the
53 * pixmap will not appear in it's caches properly. We cache the interresting 53 * pixmap will not appear in it's caches properly. We cache the interesting
54 * values in XmEnhancedButtonPart instead ourself. 54 * values in XmEnhancedButtonPart instead ourself.
55 */ 55 */
56 #if defined(LESSTIF_VERSION) || (XmVersion <= 1002) 56 #if defined(LESSTIF_VERSION) || (XmVersion <= 1002)
57 # ifndef Lab_IsMenupane 57 # ifndef Lab_IsMenupane
58 # define Lab_IsMenupane(w) (Lab_MenuType(w) == (int)XmMENU_POPUP || \ 58 # define Lab_IsMenupane(w) (Lab_MenuType(w) == (int)XmMENU_POPUP || \
1089 Window root_q; 1089 Window root_q;
1090 Window child; 1090 Window child;
1091 unsigned int mask; 1091 unsigned int mask;
1092 1092
1093 /* 1093 /*
1094 * Aritificially let the highlight appear if the mouse is over us. 1094 * Artificially let the highlight appear if the mouse is over us.
1095 */ 1095 */
1096 /* Best way to get the root window of object: */ 1096 /* Best way to get the root window of object: */
1097 XGetGeometry(dpy, XtWindow(cur), &root, &r_x, &r_y, &r_width, 1097 XGetGeometry(dpy, XtWindow(cur), &root, &r_x, &r_y, &r_width,
1098 &r_height, &r_border, &r_depth); 1098 &r_height, &r_border, &r_depth);
1099 XQueryPointer(XtDisplay(cur), XtWindow(cur), &root_q, &child, 1099 XQueryPointer(XtDisplay(cur), XtWindow(cur), &root_q, &child,