mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
7b0930f798
commit
0db172edbf
@ -119,7 +119,6 @@ maybe_redirect_mouse_event (XEvent *xevent)
|
|||||||
|
|
||||||
switch (xev->evtype)
|
switch (xev->evtype)
|
||||||
{
|
{
|
||||||
case XI_TouchBegin:
|
|
||||||
case XI_ButtonPress:
|
case XI_ButtonPress:
|
||||||
case XI_ButtonRelease:
|
case XI_ButtonRelease:
|
||||||
case XI_Motion:
|
case XI_Motion:
|
||||||
@ -149,10 +148,9 @@ maybe_redirect_mouse_event (XEvent *xevent)
|
|||||||
|
|
||||||
switch (xev->evtype)
|
switch (xev->evtype)
|
||||||
{
|
{
|
||||||
case XI_TouchBegin:
|
|
||||||
case XI_ButtonPress:
|
case XI_ButtonPress:
|
||||||
case XI_ButtonRelease:
|
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 ();
|
GtkSettings *settings = gtk_settings_get_default ();
|
||||||
int double_click_time;
|
int double_click_time;
|
||||||
@ -164,9 +162,6 @@ maybe_redirect_mouse_event (XEvent *xevent)
|
|||||||
"gtk-double-click-distance", &double_click_distance,
|
"gtk-double-click-distance", &double_click_distance,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (xev->evtype == XI_TouchBegin)
|
|
||||||
button = 1;
|
|
||||||
else
|
|
||||||
button = xev_d->detail;
|
button = xev_d->detail;
|
||||||
|
|
||||||
if (button == ui->button_click_number &&
|
if (button == ui->button_click_number &&
|
||||||
|
Loading…
Reference in New Issue
Block a user