forked from fair/matrix-puppeteer-line
Disable mouse jiggle heartbeat messages
This commit is contained in:
parent
e4de88fccc
commit
2d9805afe5
|
@ -629,15 +629,12 @@ export default class MessagesPuppeteer {
|
||||||
}
|
}
|
||||||
|
|
||||||
_jiggleMouse() {
|
_jiggleMouse() {
|
||||||
this.log("Jiggling mouse")
|
|
||||||
const initialID = this.jiggleTimerID
|
const initialID = this.jiggleTimerID
|
||||||
|
|
||||||
exec(`xdotool mousemove --sync --window ${this.windowID} 0 0`, {},
|
exec(`xdotool mousemove --sync --window ${this.windowID} 0 0`, {},
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
this.log(`Error while jiggling mouse: ${error}`)
|
this.log(`Error while jiggling mouse: ${error}`)
|
||||||
} else {
|
|
||||||
this.log("Jiggled mouse")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.jiggleTimerID == initialID) {
|
if (this.jiggleTimerID == initialID) {
|
||||||
|
|
Loading…
Reference in New Issue