mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
wayland: Write down TODOs for cairo_surface doublebuffering to itself and for mouse wheel axis_source.
This commit is contained in:
parent
f8b8609e70
commit
8f0cc1b0ca
2 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue