From 0e5f5fb00b18597d7e6e92b826d0c7257cac9cff Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Wed, 13 Feb 2019 09:20:04 +0800 Subject: [PATCH] Perform xdo key sequence before output message --- lib/gesture/swipe_gesture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gesture/swipe_gesture.cpp b/lib/gesture/swipe_gesture.cpp index 16d5580..7e4e20b 100644 --- a/lib/gesture/swipe_gesture.cpp +++ b/lib/gesture/swipe_gesture.cpp @@ -116,10 +116,10 @@ namespace comfortable_swipe::gesture if (this->previous_gesture == swipe_gesture::FRESH || this->previous_gesture == (mask ^ swipe_gesture::MSK_POSITIVE)) { + xdo_send_keysequence_window(this->xdo, CURRENTWINDOW, swipe_gesture::commands[mask], 0); this->x = this->y = 0; this->previous_gesture = mask; std::cout << "SWIPE " << swipe_gesture::command_map[mask] << std::endl; - xdo_send_keysequence_window(xdo, CURRENTWINDOW, swipe_gesture::commands[mask], 0); } } }