More verbose comment

This commit is contained in:
Simon Long 2024-10-21 09:55:33 +01:00
parent eafeb3ce97
commit 9d87facbba

View file

@ -24,7 +24,10 @@ static struct wlr_surface*
touch_get_coords(struct seat *seat, struct wlr_touch *touch, double x, double y, touch_get_coords(struct seat *seat, struct wlr_touch *touch, double x, double y,
double *x_offset, double *y_offset) double *x_offset, double *y_offset)
{ {
/* Fall out if mouse emulation is set */ /* Do not return a surface when mouse emulation is enforced. Not
* having a surface will trigger the fallback to cursor move/button
* emulation in the touch signal handlers.
*/
struct touch_config_entry *config_entry = struct touch_config_entry *config_entry =
touch_find_config_for_device(touch->base.name); touch_find_config_for_device(touch->base.name);
if (config_entry && config_entry->force_mouse_emulation) { if (config_entry && config_entry->force_mouse_emulation) {