Skip to content

Commit

Permalink
fix for nil case
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Jul 30, 2023
1 parent d356d30 commit d40a544
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frame.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ redraw-display関数でキャッシュを捨てて画面全体を再描画しま
(reverse (frame-floating-windows frame))
(window-list frame)))
(when (within-window-p window x y)
(let ((overlay-x-offset (screen-left-width (window-screen window))))
(let ((overlay-x-offset (or (screen-left-width (window-screen window))
0)))
(return (values window
(- x (window-x window) overlay-x-offset)
(- y (window-y window))))))))
Expand Down

0 comments on commit d40a544

Please sign in to comment.