Perform xdo key sequence before output message

This commit is contained in:
Rico Tiongson 2019-02-13 09:20:04 +08:00
parent b636e338c4
commit 0e5f5fb00b

View File

@ -116,10 +116,10 @@ namespace comfortable_swipe::gesture
if (this->previous_gesture == swipe_gesture::FRESH if (this->previous_gesture == swipe_gesture::FRESH
|| this->previous_gesture == (mask ^ swipe_gesture::MSK_POSITIVE)) || 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->x = this->y = 0;
this->previous_gesture = mask; this->previous_gesture = mask;
std::cout << "SWIPE " << swipe_gesture::command_map[mask] << std::endl; std::cout << "SWIPE " << swipe_gesture::command_map[mask] << std::endl;
xdo_send_keysequence_window(xdo, CURRENTWINDOW, swipe_gesture::commands[mask], 0);
} }
} }
} }