Previously if you move a window around and temporarily add a second
finger then it will cancel the grab even though the original finger is
still held on the screen. It seems more robust to avoid cancelling the
grab until all fingers have been removed.
struct shell_touch_grab *shell_grab = container_of(grab,
struct shell_touch_grab,
grab);
- shell_touch_grab_end(shell_grab);
+
+ if (grab->touch->seat->num_tp == 0)
+ shell_touch_grab_end(shell_grab);
}
static void