Fix pointer warp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user