diff --git a/hosts/wim/config/ags/js/notifications/base.js b/hosts/wim/config/ags/js/notifications/base.js index ff5ab1f5..3a1bebbb 100644 --- a/hosts/wim/config/ags/js/notifications/base.js +++ b/hosts/wim/config/ags/js/notifications/base.js @@ -4,7 +4,7 @@ const { Box, Icon, Label, Button } = Widget; import GLib from 'gi://GLib'; -import Gesture from '../misc/drag.js'; +import Gesture from './gesture.js'; import { EventBox } from '../misc/cursorbox.js' diff --git a/hosts/wim/config/ags/services/pointers.js b/hosts/wim/config/ags/services/pointers.js index 7aed4d61..9c19ba46 100644 --- a/hosts/wim/config/ags/services/pointers.js +++ b/hosts/wim/config/ags/services/pointers.js @@ -13,7 +13,7 @@ class Pointers extends Service { }); } - proc; + proc = undefined; output = ""; devices = new Map(); @@ -52,6 +52,9 @@ class Pointers extends Service { } startProc() { + if (this.proc) + return; + let args = []; this.devices.forEach(dev => { if (dev.Kernel) { @@ -79,6 +82,7 @@ class Pointers extends Service { killProc() { if (this.proc) { this.proc.force_exit(); + this.proc = undefined; this.emit('proc-destroyed', true); } }