Skip to content

Commit

Permalink
Enforce actual viewport dimensions when in fullscreen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
borodust committed Jul 5, 2019
1 parent 0eb7c65 commit 2a451f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appkit/appkit.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@
(height (or viewport-height *default-viewport-height*)))
(>> (ge.host:for-host ()
(log/debug "Updating appkit host configuration")
(when fullscreen-p
(ge.host:with-viewport-dimensions (actual-width actual-height)
(setf width actual-width
height actual-height)))
(update-viewport app
(or viewport-title *default-viewport-title*)
width height fullscreen-p))
Expand Down

0 comments on commit 2a451f6

Please sign in to comment.