Skip to content

Commit

Permalink
Changed name from incf-pointer to update-pointer (cffi already names …
Browse files Browse the repository at this point in the history
…such a function)
  • Loading branch information
malcolmstill committed Oct 23, 2016
1 parent 37896bb commit c9313fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions default-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
(round (* 256 (- y (y surface)))))
(wl-pointer-send-frame (->pointer (client surface)))))

(defun incf-pointer (delta-x delta-y)
(defun update-pointer (delta-x delta-y)
(with-slots (pointer-x pointer-y screen-width screen-height) *compositor*
(incf pointer-x delta-x)
(incf pointer-y delta-y)
Expand All @@ -68,7 +68,7 @@
(defmethod mouse-motion-handler ((mode default-mode) time delta-x delta-y)
;; Update the pointer location
(with-slots (pointer-x pointer-y) *compositor*
(incf-pointer delta-x delta-y)
(update-pointer delta-x delta-y)
(when (cursor-surface *compositor*)
(setf (render-needed *compositor*) t))
(let ((old-surface (pointer-surface *compositor*))
Expand Down

0 comments on commit c9313fc

Please sign in to comment.