mpsq / emacs-gcc-wayland-devel-builder

Emacs with native compilation ("gcc") and Wayland support
https://aur.archlinux.org/packages/emacs-gcc-wayland-devel-bin/
91 stars 5 forks source link

White overlay on graphical emacs with transparency #20

Closed corentincam closed 3 years ago

corentincam commented 3 years ago

When I run emacs on graphical mode with transparency enabled, a white overlay appears and makes everything hard to read... Any idea what's happening here and how could I fix it?

OS: Arch Compositor: sway Emacs distribution: spacemacs

Screenshot: image

mpsq commented 3 years ago

How do you enable transparency. from Emacs itself?

corentincam commented 3 years ago

Yes, like this:

(set-frame-parameter (selected-frame) 'alpha '(90 . 90))
(add-to-list 'default-frame-alist '(alpha . (90 . 90)))

or (spacemacs/enable-transparency)

mpsq commented 3 years ago

Since you are using Sway, you could do it there instead (Sway config):

for_window [app_id="emacs"] opacity 0.9
corentincam commented 3 years ago

I could, but this makes the whole thing transparent (even the font) which is not really what I'm looking for... But it will do the job while there is no other solution :slightly_smiling_face: