Skip to content

Commit

Permalink
Merge branch 'review-foreign-interface'
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Dec 20, 2023
2 parents ca72761 + 8af6b3c commit 82935dc
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 127 deletions.
8 changes: 2 additions & 6 deletions source/browser.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,9 @@ A list of strings is returned, as to comply with `uiop:launch-program' or
"Run BODY from a new thread when renderer is ready.
`ffi-within-renderer-thread' runs its body on the renderer thread when it's
idle, so it should do the job."
`(ffi-within-renderer-thread
browser
(lambda ()
(run-thread ,thread-name
,@body))))
`(ffi-within-renderer-thread (lambda () (run-thread ,thread-name ,@body))))

(defmethod finalize ((browser browser) urls startup-timestamp)
(defmethod finalize-startup ((browser browser) urls startup-timestamp)
"Run `after-init-hook' then BROWSER's `startup'."
;; `messages-appender' requires `*browser*' to be initialized.
(unless (find-if (sera:eqs 'messages-appender) (log4cl:all-appenders)
Expand Down
2 changes: 1 addition & 1 deletion source/buffer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ is listed first."
(prog1 (set-current-buffer (current-buffer))
(ps-eval :buffer prompt-buffer
(setf (ps:@ (nyxt/ps:qs document "*") style opacity) "0.5")))
(prog1 (ffi-focus-prompt-buffer (current-window) prompt-buffer)
(prog1 (ffi-focus-prompt-buffer prompt-buffer)
(ps-eval :buffer prompt-buffer
(setf (ps:@ (nyxt/ps:qs document "*") style opacity) "1"))))))

Expand Down
Loading

0 comments on commit 82935dc

Please sign in to comment.