Mercurial > hg > xemacs-beta
comparison src/device-x.c @ 193:f53b5ca2e663 r20-3b23
Import from CVS: tag r20-3b23
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:58:30 +0200 |
parents | b405438285a2 |
children | acd284d43ca1 |
comparison
equal
deleted
inserted
replaced
192:9d35321dd38c | 193:f53b5ca2e663 |
---|---|
1131 (device)) | 1131 (device)) |
1132 { | 1132 { |
1133 switch (DefaultVisualOfScreen | 1133 switch (DefaultVisualOfScreen |
1134 (DefaultScreenOfDisplay (get_x_display (device)))->class) | 1134 (DefaultScreenOfDisplay (get_x_display (device)))->class) |
1135 { | 1135 { |
1136 case StaticGray: return (intern ("static-gray")); | 1136 case StaticGray: return intern ("static-gray"); |
1137 case GrayScale: return (intern ("gray-scale")); | 1137 case GrayScale: return intern ("gray-scale"); |
1138 case StaticColor: return (intern ("static-color")); | 1138 case StaticColor: return intern ("static-color"); |
1139 case PseudoColor: return (intern ("pseudo-color")); | 1139 case PseudoColor: return intern ("pseudo-color"); |
1140 case TrueColor: return (intern ("true-color")); | 1140 case TrueColor: return intern ("true-color"); |
1141 case DirectColor: return (intern ("direct-color")); | 1141 case DirectColor: return intern ("direct-color"); |
1142 default: | 1142 default: |
1143 error ("display has an unknown visual class"); | 1143 error ("display has an unknown visual class"); |
1144 } | 1144 } |
1145 | 1145 |
1146 return Qnil; /* suppress compiler warning */ | 1146 return Qnil; /* suppress compiler warning */ |
1326 seem to cause a problem if XFreeCursor is called on a cursor in use | 1326 seem to cause a problem if XFreeCursor is called on a cursor in use |
1327 in a grab; I suppose the X server counts the grab as a reference | 1327 in a grab; I suppose the X server counts the grab as a reference |
1328 and doesn't free it until it exits? */ | 1328 and doesn't free it until it exits? */ |
1329 result = XGrabPointer (DEVICE_X_DISPLAY (d), w, | 1329 result = XGrabPointer (DEVICE_X_DISPLAY (d), w, |
1330 False, | 1330 False, |
1331 ButtonMotionMask | ButtonPressMask | 1331 ButtonMotionMask | |
1332 | ButtonReleaseMask | PointerMotionHintMask, | 1332 ButtonPressMask | |
1333 ButtonReleaseMask | | |
1334 PointerMotionHintMask, | |
1333 GrabModeAsync, /* Keep pointer events flowing */ | 1335 GrabModeAsync, /* Keep pointer events flowing */ |
1334 pointer_mode, /* Stall keyboard events */ | 1336 pointer_mode, /* Stall keyboard events */ |
1335 w, /* Stay in this window */ | 1337 w, /* Stay in this window */ |
1336 (NILP (cursor) ? 0 | 1338 (NILP (cursor) ? 0 |
1337 : XIMAGE_INSTANCE_X_CURSOR (cursor)), | 1339 : XIMAGE_INSTANCE_X_CURSOR (cursor)), |