Buttons are not clickable in side windows

Open
#2,093 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
44/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
desktop

Research direction

The issue provides a reproduction using lem:make-rightside-window and lem/button:insert-button, but names no implementation files or tests. Start by tracing how button clicks are handled in side windows and compare that path with a regular buffer. Done means the callback runs when the button in the side window is clicked.

Written by the indexing model from the issue text.

Description

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
Dominant language
Common Lisp
Stars
3.1k
Forks
261
Avg merge
1d 6h
Merged PRs (30d)
133

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lem-project/lem

All issues in lem-project/lem

Similar issues

More Desktop Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.