cov->hover_gesture.timer = ecore_timer_add(time, _on_hover_timeout, cov);
}
+static Eina_Bool
+_on_screen_edge(Cover *cov)
+{
+ E_Accessibility_Conf_Edd* conf = e_accessibility_get_configuration();
+ if (((cov->hover_gesture.x[0] < cov->zone.x + conf->gesture.quickpanel_area_size)
+ && (cov->hover_gesture.x[1] < cov->zone.x + conf->gesture.quickpanel_area_size))
+ || ((cov->hover_gesture.x[0] > cov->zone.x + cov->zone.w - conf->gesture.quickpanel_area_size)
+ && (cov->hover_gesture.x[1] > cov->zone.x + cov->zone.w - conf->gesture.quickpanel_area_size)))
+ return EINA_TRUE;
+
+ return EINA_FALSE;
+}
+
static void
_hover_gesture_mouse_down(Ecore_Event_Mouse_Button *ev, Cover *cov)
{
cov->hover_gesture.y[1] = ev->root.y;
cov->hover_gesture.finger[1] = ev->multi.device;
cov->hover_gesture.n_fingers = 2;
- E_Accessibility_Conf_Edd* conf = e_accessibility_get_configuration();
_hover_gesture_timer_reset(cov, _e_mod_config->two_fingers_hover_longpress_timeout);
/* Make Quickpanel Open Easy */
- if (((cov->hover_gesture.y[0] < cov->zone.y + conf->gesture.quickpanel_area_size)
- && (cov->hover_gesture.y[1] < cov->zone.y + conf->gesture.quickpanel_area_size)) ||
- ((cov->hover_gesture.y[0] > cov->zone.y + cov->zone.h - conf->gesture.quickpanel_area_size)
- && (cov->hover_gesture.y[1] > cov->zone.y + cov->zone.h - conf->gesture.quickpanel_area_size)))
+ if (_on_screen_edge(cov))
{
/* Do what _on_hover_timeout does */
cov->hover_gesture.longpressed = EINA_TRUE;