Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add on-long-touch option #534

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

chayleaf
Copy link

There are much less input options when using a touchscreen, so hopefully this should somewhat bridge the gap in experience.

@chayleaf chayleaf marked this pull request as draft August 24, 2024 08:23
notification.c Outdated Show resolved Hide resolved
@chayleaf chayleaf marked this pull request as ready for review August 24, 2024 10:28
@@ -144,7 +158,7 @@ static void touch_handle_up(void *data, struct wl_touch *wl_touch,
wl_list_for_each(notif, &state->notifications, link) {
if (hotspot_at(&notif->hotspot, seat->touch.pts[id].x, seat->touch.pts[id].y)) {
struct mako_surface *surface = notif->surface;
notification_handle_touch(notif, &ctx);
notification_handle_touch(notif, &ctx, time - seat->touch.pts[id].time);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we already have a timer, I don't think we need to also handle the timeout here?

Comment on lines +71 to +75
*long-press-duration*=_time_
Specifies the cutoff time (in milliseconds) for a press to be
considered a long press.

Default: 500
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer not to expose a config option for this for now. We can always add in the future if needed, but if there's no clear use-case for it, I prefer not to add something which might tie our hands later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants