Improve responsiveness of initial gesture by pre-empting xdotool in swipe_gesture constructor (#49)
This commit is contained in:
parent
0b3b3238af
commit
68bea125e3
@ -49,7 +49,10 @@ namespace comfortable_swipe::gesture
|
|||||||
comfortable_swipe::gesture::xdo_gesture(),
|
comfortable_swipe::gesture::xdo_gesture(),
|
||||||
threshold_squared(threshold*threshold),
|
threshold_squared(threshold*threshold),
|
||||||
commands(new const char*[8]{left3, left4, right3, right4, up3, up4, down3, down4})
|
commands(new const char*[8]{left3, left4, right3, right4, up3, up4, down3, down4})
|
||||||
{ }
|
{
|
||||||
|
// improve responsiveness of first gesture by pre-empting xdotool runtime
|
||||||
|
xdo_get_mouse_location(this->xdo, &this->ix, &this->iy, &this->screen_num);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructs this swipe gesture.
|
* Destructs this swipe gesture.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user