@@ -19,6 +19,12 @@ struct mako_hotspot {
1919 int32_t width , height ;
2020};
2121
22+ struct mako_binding_context {
23+ struct mako_surface * surface ;
24+ struct mako_seat * seat ;
25+ uint32_t serial ;
26+ };
27+
2228struct mako_notification {
2329 struct mako_state * state ;
2430 struct mako_surface * surface ;
@@ -38,6 +44,8 @@ struct mako_notification {
3844 char * body ;
3945 int32_t requested_timeout ;
4046 struct wl_list actions ; // mako_action::link
47+ struct mako_timer * long_press_timer ;
48+ struct mako_binding_context long_press_ctx ;
4149
4250 enum mako_notification_urgency urgency ;
4351 char * category ;
@@ -70,12 +78,6 @@ struct mako_hidden_format_data {
7078 size_t count ;
7179};
7280
73- struct mako_binding_context {
74- struct mako_surface * surface ;
75- struct mako_seat * seat ;
76- uint32_t serial ;
77- };
78-
7981typedef char * (* mako_format_func_t )(char variable , bool * markup , void * data );
8082
8183bool hotspot_at (struct mako_hotspot * hotspot , int32_t x , int32_t y );
@@ -100,6 +102,8 @@ size_t format_notification(struct mako_notification *notif, const char *format,
100102 char * buf );
101103void notification_handle_button (struct mako_notification * notif , uint32_t button ,
102104 enum wl_pointer_button_state state , const struct mako_binding_context * ctx );
105+ void notification_handle_touch_start (struct mako_notification * notif ,
106+ const struct mako_binding_context * ctx );
103107void notification_handle_touch (struct mako_notification * notif ,
104108 const struct mako_binding_context * ctx , int32_t duration_ms );
105109void notification_execute_binding (struct mako_notification * notif ,
0 commit comments