Skip to content

Commit

Permalink
fix: clearer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Dec 9, 2024
1 parent 6868caa commit e8e2517
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ext/popup-message.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
:buffer buffer
:width width
:height height
;; NOTE: Simply ban the mouse-click event for a popup-window, to avoid the popup-window gain the mouse focus, being the only window as current-window in window-tree, causing lem unable to delete it.
;; However, since the popup-message is a window used to display string, you can still use mouse-scroll to scroll the text.
:clickable nil
;; NOTE: Block mouse clicks on popup windows to prevent them from gaining focus.
;; If a popup window gains focus, it becomes the only active window in the window-tree,
;; which prevents Lem from being able to close it.
;; Mouse scrolling remains enabled since popup windows are used for displaying text content. :clickable nil
:style style)))
(buffer-start (window-view-point window))
(window-see window)
Expand Down

0 comments on commit e8e2517

Please sign in to comment.