From 0ac299589e22b4a75a7d1da01bf9f3a40f414ec3 Mon Sep 17 00:00:00 2001 From: bluepython508 <16466646+bluepython508@users.noreply.github.com> Date: Thu, 19 Feb 2026 09:49:23 +0000 Subject: [PATCH] Fix pointer warp --- main.janet | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.janet b/main.janet index 9e72537..800197c 100644 --- a/main.janet +++ b/main.janet @@ -491,7 +491,9 @@ new-output (action/target-in current-output outputs dir)] (seat/focus-output seat new-output) (seat/focus seat (first (output/windows new-output))) - (:pointer-warp (seat :obj) (+ (new-output :x) (/ (new-output :w) 2)) (+ (new-output :y) (/ (new-output :h) 2)))))) + (def [x y] (new-output :position)) + (def [w h] (new-output :dimensions)) + (:pointer-warp (seat :obj) (+ x (/ w 2)) (+ y (/ h 2)))))) (defn action/goto-tag [tag] (def f (cond