Skip to content

Commit

Permalink
manager: be explicit with a type cast of wm-size-hints-x/y
Browse files Browse the repository at this point in the history
Patch sent by @fmgilham. Fixes #160.
  • Loading branch information
dkochmanski committed Jan 12, 2020
1 parent 6172804 commit 9f7f761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@
(when (and (wm-size-hints-x hints) (wm-size-hints-y hints))
(unless (wm-size-hints-user-specified-position-p hints)
(setf (ldb (byte 1 2) flags) 1))
(setf (aref vector 1) (wm-size-hints-x hints)
(aref vector 2) (wm-size-hints-y hints)))
(setf (aref vector 1) (int32->card32 (wm-size-hints-x hints))
(aref vector 2) (int32->card32 (wm-size-hints-y hints))))
(when (and (wm-size-hints-width hints) (wm-size-hints-height hints))
(unless (wm-size-hints-user-specified-size-p hints)
(setf (ldb (byte 1 3) flags) 1))
Expand Down

0 comments on commit 9f7f761

Please sign in to comment.