/* 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
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 */