wayland: Write down TODOs for cairo_surface doublebuffering to itself and for mouse wheel axis_source.

This commit is contained in:
Ivan Vučica 2020-04-25 18:05:43 +01:00
parent f8b8609e70
commit 8f0cc1b0ca
No known key found for this signature in database
GPG key ID: 6E4D7BA2D93CAC9D
2 changed files with 10 additions and 0 deletions

View file

@ -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);

View file

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