Skip to content

Commit

Permalink
fix: ban the mouse click event in popup-window.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Dec 9, 2024
1 parent c44ffde commit acab5e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mouse.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@
(focus-window-position (current-frame)
(mouse-event-x mouse-event)
(mouse-event-y mouse-event))
(when window
(when (and window
;; 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.
(not (typep window 'lem/popup-window::popup-window)))
(handle-mouse-button-down (window-buffer window)
mouse-event
:window window
Expand Down

0 comments on commit acab5e9

Please sign in to comment.