Skip to content

Conversation

@oisanjaya
Copy link

  • Add Hover-to-dismiss feature to notification surfaces.
    Basically done by calling close_notification() from wayland.c:pointer_handle_leave() via event loop by calling add_event_loop_timer() calling back handle_notification_hover_dismiss_timer().

  • Added several several helper structures and functions, that is:

    • hover_dismiss_timer in global state
    • hover_to_dismiss_timeout in mako_style_spec and mako_style
    • handle_notification_hover_dismiss_timer() in wayland.c
    • hotspot_at_offset() in notification.c

- config.h: Add hover_to_dismiss_timeout to mako_style_spec and mako_style
- config.c: Initialize hover_to_dismiss_timeout
- wayland.c: Test if hover_to_dismiss_timeout > 0 before check pointer leaving notification hotspot surface
- Various completion scripts and doc string
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.

1 participant