ui: Remove XI_TouchBegin handling from window frame event handlers

This is now unnecessary as only pointer events are selected, so pointer
emulation will take care of sending only pointer events.
This commit is contained in:
Carlos Garnacho 2014-06-19 21:50:37 +02:00 committed by Jasper St. Pierre
parent 7b0930f798
commit 0db172edbf

View File

@ -119,7 +119,6 @@ maybe_redirect_mouse_event (XEvent *xevent)
switch (xev->evtype)
{
case XI_TouchBegin:
case XI_ButtonPress:
case XI_ButtonRelease:
case XI_Motion:
@ -149,10 +148,9 @@ maybe_redirect_mouse_event (XEvent *xevent)
switch (xev->evtype)
{
case XI_TouchBegin:
case XI_ButtonPress:
case XI_ButtonRelease:
if (xev_d->evtype == XI_ButtonPress || xev_d->evtype == XI_TouchBegin)
if (xev_d->evtype == XI_ButtonPress)
{
GtkSettings *settings = gtk_settings_get_default ();
int double_click_time;
@ -164,10 +162,7 @@ maybe_redirect_mouse_event (XEvent *xevent)
"gtk-double-click-distance", &double_click_distance,
NULL);
if (xev->evtype == XI_TouchBegin)
button = 1;
else
button = xev_d->detail;
button = xev_d->detail;
if (button == ui->button_click_number &&
xev_d->event == ui->button_click_window &&