aboutsummaryrefslogtreecommitdiffstats
path: root/static/modules/windows.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/modules/windows.js')
-rw-r--r--static/modules/windows.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/modules/windows.js b/static/modules/windows.js
index 0657a16..639137e 100644
--- a/static/modules/windows.js
+++ b/static/modules/windows.js
@@ -14,6 +14,8 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+import { buzz } from "../hold.js";
+
async function post(action, body = {}) {
try {
await fetch(`/api/windows/${action}`, {
@@ -120,7 +122,7 @@ function card(w, workspaces, wsIcons) {
if (e.target.closest(".wx")) return;
long = false;
const at = { left: e.clientX, bottom: e.clientY };
- timer = setTimeout(() => { long = true; openMenu(at, w, workspaces, wsIcons); }, 600);
+ timer = setTimeout(() => { long = true; buzz(); openMenu(at, w, workspaces, wsIcons); }, 600);
});
// Chrome's own long-press menu (copy or share the image) is not wanted here.
c.addEventListener("contextmenu", (e) => e.preventDefault());