Skip to content

Commit

Permalink
Reset the mouse cursor when it's over the close button.
Browse files Browse the repository at this point in the history
  • Loading branch information
froggey committed Apr 9, 2017
1 parent 7659c92 commit 01af402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/widgets.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@
(cond ((in-frame-close-button frame
(mouse-x-position event)
(mouse-y-position event))
(when (resizablep frame)
(funcall (set-cursor-function frame) :default))
(when (not (close-button-hover frame))
(setf (close-button-hover frame) t)
(draw-frame frame)
Expand Down

0 comments on commit 01af402

Please sign in to comment.