/* Select event types wanted */
window_event_mask =
ExposureMask | StructureNotifyMask | FocusChangeMask |
- ButtonPressMask | ButtonReleaseMask | PointerMotionMask |
+ ButtonPressMask | ButtonReleaseMask |
+ PointerMotionMask | PointerMotionHintMask |
KeyPressMask | KeyReleaseMask;
- /* unwanted mouse motion events now get filtered out by filter function */
- /* window_event_mask |= PointerMotionHintMask; */
-
XSelectInput(display, new_window->drawable, window_event_mask);
#endif
XCreateGC(display, new_window->drawable, gc_valuemask, &gc_values);
/* create GCs for line drawing (black and white) */
- for(i=0; i<2; i++)
+ for (i = 0; i < 2; i++)
{
gc_values.graphics_exposures = False;
gc_values.foreground = (i ? pen_fg : pen_bg);
return pixel_value;
}
+#if defined(TARGET_X11_NATIVE)
inline Pixel X11GetPixelFromRGB(unsigned int color_r, unsigned int color_g,
unsigned int color_b)
{
return pixel;
}
+#endif /* TARGET_X11_NATIVE */
+
/* ------------------------------------------------------------------------- */
/* mouse pointer functions */