deepin-daemon/deepin-daemon-libinput.patch

60 lines
2.4 KiB
Diff
Raw Normal View History

2019-04-25 03:52:57 +02:00
diff --git a/system/gesture/core.c b/system/gesture/core.c
index 85902af6..f9a02551 100644
2019-04-25 03:52:57 +02:00
--- a/system/gesture/core.c
+++ b/system/gesture/core.c
@@ -358,9 +358,7 @@ handle_gesture_events(struct libinput_event *ev, int type)
if (raw->dblclick
&& type != LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN
&& type != LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE
- && type != LIBINPUT_EVENT_GESTURE_SWIPE_END
- && type != LIBINPUT_EVENT_GESTURE_TAP_UPDATE
- && type != LIBINPUT_EVENT_GESTURE_TAP_END) {
+ && type != LIBINPUT_EVENT_GESTURE_SWIPE_END) {
raw->fingers = libinput_event_gesture_get_finger_count(gesture);
handleSwipeStop(raw->fingers);
raw->dblclick = false;
@@ -438,31 +436,6 @@ handle_gesture_events(struct libinput_event *ev, int type)
raw_event_reset(raw, true);
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
break;
- case LIBINPUT_EVENT_GESTURE_TAP_BEGIN:
- g_debug("[Tap begin] time: %u duration: %d fingers: %d \n", raw->t_start_tap, (libinput_event_gesture_get_time_usec(gesture) - raw->t_start_tap) / 1000, raw->fingers);
- if (raw->t_start_tap > 0
- && (libinput_event_gesture_get_time_usec(gesture) - raw->t_start_tap) / 1000 <= dblclick_duration
- && raw->fingers == libinput_event_gesture_get_finger_count(gesture)) {
- handleDbclickDown(raw->fingers);
- handle_tap_stop();
- raw_event_reset(raw, true);
- raw->dblclick = true;
- }
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
- break;
- case LIBINPUT_EVENT_GESTURE_TAP_END:
- if (libinput_event_gesture_get_cancelled(gesture)) {
- raw_event_reset(raw, true);
- break;
- }
-
- if (!raw->dblclick) {
- raw->fingers = libinput_event_gesture_get_finger_count(gesture);
- raw->t_start_tap = libinput_event_gesture_get_time_usec(gesture);
- handle_tap_delay();
- } else {
- raw_event_reset(raw, true);
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
- }
- break;
}
}
@@ -591,10 +564,7 @@ handle_events(struct libinput *li, struct movement *m)
2019-04-25 03:52:57 +02:00
case LIBINPUT_EVENT_GESTURE_PINCH_END:
case LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN:
case LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE:
Accepting request 547694 from X11:Deepin:Factory - Update to 3.2.7 * gesture: check keyboard grab status before do action * mime: add multi default app id * audio: select best port if config non-exist * plymouth: support ssd theme checker * dock: fix index in signal EntryAdded is wrong * add flatpak to recommends * audio: remove style in font config * network: fix wireless disconnect when delete inactive hotspot * logined: update 'UserList' when session removed * network: remove autoconnect from wireless hotspot * appearance: fix fonts memory used large when loading * audio: add switcher to decide whether auto switch port * add com.deepin.daemon.ImageBlur interface * not show newly installed wechat in launcher * failed to set some bmp image file as icon * the Accels field of two shortcuts is empty * make `install_to_hicolor.py` compatibility with older python3 * automatic switch port when card changed * add shortcut for deepin-system-monitor and color-picker * support deepin qt theme settings * add touchpad tap gesture * add flatpak app window identify method * fix gccgo compile failed * fix syndaemon pid file not created * fix wireless not work after multiple toggle hotspot * fix active connections not updated when deleted the last connection * update font config xml version * refactor grub theme dbus interface * rename 'Logout' shortcut to 'Shutdown Interface' OBS-URL: https://build.opensuse.org/request/show/547694 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/deepin-daemon?expand=0&rev=2
2017-12-03 12:13:12 +01:00
- case LIBINPUT_EVENT_GESTURE_SWIPE_END:
- case LIBINPUT_EVENT_GESTURE_TAP_BEGIN:
- case LIBINPUT_EVENT_GESTURE_TAP_UPDATE:
- case LIBINPUT_EVENT_GESTURE_TAP_END:{
+ case LIBINPUT_EVENT_GESTURE_SWIPE_END:{
handle_gesture_events(ev, type);
break;
}