tumashu / ivy-posframe

ivy-posframe is a ivy extension, which let ivy use posframe to show its candidate menu, ivy-posframe is a **GNU ELPA** package.
414 stars 26 forks source link

No visible ivy-posframe border in exwm #122

Open franburstall opened 2 years ago

franburstall commented 2 years ago

I belatedly discovered that ivy-posframe now works with exwm---many thanks!

However, I have a small niggle: under exwm, with the following config, the posframe should have a visible gray50 border but does not. Any ideas?

(use-package ivy-posframe
  :ensure t
  :config
  (ivy-posframe-mode 1)
  (defun my/ivy-posframe-get-size ()
    (let ((height (or ivy-posframe-height ivy-height))
      (width (round (* 0.7 (frame-width)))))
      (list :height height :width width :min-height height :min-width width)))
  :custom
  (posframe-mouse-banish-function #'posframe-mouse-banish-simple)
  (ivy-posframe-display-functions-alist
   '((swiper-isearch . ivy-display-function-fallback)
     (t . ivy-posframe-display)))
  (ivy-posframe-height-alist '((counsel-yank-pop . 40)
                   (t . 20)))
  (ivy-posframe-size-function 'my/ivy-posframe-get-size)
  (ivy-posframe-parameters '((internal-border-width . 2))))

emacs-version: GNU Emacs 28.0.91 exwm version: 0.26 OS: debian-11

tumashu commented 2 years ago

try set ivy-posframe-border-width

franburstall commented 2 years ago

I have tried this and it makes no difference. To be absolutely clear: if I run a standalone emacs, I see the border as I expect but for the daemon instance of emacs that is running exwm, no border is visible.