Skip to content

Buttons are not clickable in side windows #2093

@ethanxxxl

Description

@ethanxxxl

The following test code creates a button in a side window. The callback is not run in the side window when I click the button. When I dump the button in directly into the buffer, it works as expected.

(defun side-window ()
  (let ((buf (lem:make-buffer "*tmp*")))
    (lem:make-rightside-window buf)
    
    (lem:with-current-buffer buf
      (lem/button:insert-button (lem:current-point)
                                "test button"
                                (lambda () (lem:message "this is a test"))))))

(defun regular-buffer ()
  (lem/button:insert-button (lem:current-point)
                            "test button"
                            (lambda () (lem:message "this is a test"))))
(side-window)
(regular-buffer)
test button

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions