eff4241592
- 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
98 lines
3.7 KiB
Diff
98 lines
3.7 KiB
Diff
diff -Nur dde-daemon-3.2.6/misc/dde-daemon/gesture.json dde-daemon-3.2.6-new/misc/dde-daemon/gesture.json
|
|
--- dde-daemon-3.2.6/misc/dde-daemon/gesture.json 2017-11-16 20:32:17.000000000 +0800
|
|
+++ dde-daemon-3.2.6-new/misc/dde-daemon/gesture.json 2017-11-29 23:16:08.696136900 +0800
|
|
@@ -54,15 +54,6 @@
|
|
}
|
|
},
|
|
{
|
|
- "Name": "tap",
|
|
- "Direction": "none",
|
|
- "Fingers": 3,
|
|
- "Action": {
|
|
- "Type": "built-in",
|
|
- "Action": "MoveWindow"
|
|
- }
|
|
- },
|
|
- {
|
|
"Name": "swipe",
|
|
"Direction": "up",
|
|
"Fingers": 4,
|
|
diff -Nur dde-daemon-3.2.6/system/gesture/core.c dde-daemon-3.2.6-new/system/gesture/core.c
|
|
--- dde-daemon-3.2.6/system/gesture/core.c 2017-11-16 20:32:17.000000000 +0800
|
|
+++ dde-daemon-3.2.6-new/system/gesture/core.c 2017-11-29 23:20:21.688875700 +0800
|
|
@@ -211,16 +211,16 @@
|
|
}
|
|
raw_event_reset(raw);
|
|
break;
|
|
- case LIBINPUT_EVENT_GESTURE_TAP_BEGIN:
|
|
- break;
|
|
- case LIBINPUT_EVENT_GESTURE_TAP_END:
|
|
- if (libinput_event_gesture_get_cancelled(gesture)) {
|
|
- break;
|
|
- }
|
|
- raw->fingers = libinput_event_gesture_get_finger_count(gesture);
|
|
- printf("[Tap] fingers: %d\n", raw->fingers);
|
|
- handleGestureEvent(GESTURE_TYPE_TAP, GESTURE_DIRECTION_NONE, raw->fingers);
|
|
- break;
|
|
+ /* case LIBINPUT_EVENT_GESTURE_TAP_BEGIN: */
|
|
+ /* break; */
|
|
+ /* case LIBINPUT_EVENT_GESTURE_TAP_END: */
|
|
+ /* if (libinput_event_gesture_get_cancelled(gesture)) { */
|
|
+ /* break; */
|
|
+ /* } */
|
|
+ /* raw->fingers = libinput_event_gesture_get_finger_count(gesture); */
|
|
+ /* printf("[Tap] fingers: %d\n", raw->fingers); */
|
|
+ /* handleGestureEvent(GESTURE_TYPE_TAP, GESTURE_DIRECTION_NONE, raw->fingers); */
|
|
+ /* break; */
|
|
}
|
|
}
|
|
|
|
@@ -278,13 +278,10 @@
|
|
}
|
|
case LIBINPUT_EVENT_GESTURE_PINCH_BEGIN:
|
|
case LIBINPUT_EVENT_GESTURE_PINCH_UPDATE:
|
|
- case LIBINPUT_EVENT_GESTURE_PINCH_END:
|
|
- case LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN:
|
|
- case LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE:
|
|
- 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_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;
|
|
}
|
|
diff -Nur dde-daemon-3.2.6/system/gesture/gesture.go dde-daemon-3.2.6-new/system/gesture/gesture.go
|
|
--- dde-daemon-3.2.6/system/gesture/gesture.go 2017-11-16 20:32:17.000000000 +0800
|
|
+++ dde-daemon-3.2.6-new/system/gesture/gesture.go 2017-11-29 23:11:14.265531500 +0800
|
|
@@ -42,9 +42,9 @@
|
|
var (
|
|
GestureTypeSwipe = GestureType(C.GESTURE_TYPE_SWIPE)
|
|
GestureTypePinch = GestureType(C.GESTURE_TYPE_PINCH)
|
|
- GestureTypeTap = GestureType(C.GESTURE_TYPE_TAP)
|
|
+ // GestureTypeTap = GestureType(C.GESTURE_TYPE_TAP)
|
|
|
|
- GestureDirectionNone = GestureType(C.GESTURE_DIRECTION_NONE)
|
|
+ // GestureDirectionNone = GestureType(C.GESTURE_DIRECTION_NONE)
|
|
GestureDirectionUp = GestureType(C.GESTURE_DIRECTION_UP)
|
|
GestureDirectionDown = GestureType(C.GESTURE_DIRECTION_DOWN)
|
|
GestureDirectionLeft = GestureType(C.GESTURE_DIRECTION_LEFT)
|
|
@@ -59,10 +59,10 @@
|
|
return "swipe"
|
|
case GestureTypePinch:
|
|
return "pinch"
|
|
- case GestureTypeTap:
|
|
- return "tap"
|
|
- case GestureDirectionNone:
|
|
- return "none"
|
|
+ // case GestureTypeTap:
|
|
+ // return "tap"
|
|
+ // case GestureDirectionNone:
|
|
+ // return "none"
|
|
case GestureDirectionUp:
|
|
return "up"
|
|
case GestureDirectionDown:
|