diff --git a/Source/cairo/WaylandCairoSurface.m b/Source/cairo/WaylandCairoSurface.m index 0b871af..c6bd101 100644 --- a/Source/cairo/WaylandCairoSurface.m +++ b/Source/cairo/WaylandCairoSurface.m @@ -210,6 +210,8 @@ create_shm_buffer(struct window *window) cairo_surface_get_device_offset(cairo_surface, &backupOffsetX, &backupOffsetY); cairo_surface_set_device_offset(cairo_surface, 0, 0); + // FIXME: This seems to be creating a context to paint into cairo_surface, + // and then copies back into the same cairo_surface. cairo_t *cr = cairo_create(cairo_surface); cairo_rectangle(cr, x, y, width, height); diff --git a/Source/wayland/WaylandServer.m b/Source/wayland/WaylandServer.m index a5e4868..748c110 100644 --- a/Source/wayland/WaylandServer.m +++ b/Source/wayland/WaylandServer.m @@ -373,6 +373,14 @@ pointer_handle_axis(void *data, struct wl_pointer *pointer, window->height - wlconfig->pointer.y); eventFlags = 0; + /* FIXME: we should get axis_source out of wl_pointer; however, the wl_pointer + is not defined in wayland-client.h. How does one get the axis_source out of + it to confirm the source is the physical mouse wheel? */ +#if 0 + if (pointer->axis_source != WL_POINTER_AXIS_SOURCE_WHEEL) + return; +#endif + float mouse_scroll_multiplier = wlconfig->mouse_scroll_multiplier; /* For smooth-scroll events, we're not doing any cross-event or delta calculations, as is done in button event handling. */