Skip to content

Commit

Permalink
Define function (SETF WINDOW-CURSOR) rather than using DEFSETF.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-strandh committed Jul 19, 2016
1 parent e384ba2 commit 11c8bbe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions attributes.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,11 @@
window
(error "~S can only be set" 'window-cursor))

(defun set-window-cursor (window cursor)
(defun (setf window-cursor) (cursor window)
(change-window-attribute
window 14 (encode-type (or (member :none) cursor) cursor))
cursor)

(defsetf window-cursor set-window-cursor)

(defun window-colormap-installed-p (window)
(declare (type window window))
(declare (clx-values generalized-boolean))
Expand Down

0 comments on commit 11c8bbe

Please sign in to comment.