focus-out-hook causing wrong colors on Mac
luisgerhorst opened this issue · 3 comments
I'm using solarized-theme
(melpa-stable, version 1.2.2) with solarized-high-contrast-mode-line
enabled. Here's how I set up solarized and powerline.
When Emacs is focused the mode line of active buffers looks fine:
The problem occurs when I use another application:
I have to click two times in the Emacs frame to make it look normal again. The mode lines of inactive buffers always look the same:
Note: I worked around the problem by calling (remove-hook 'focus-out-hook 'powerline-unset-selected-window)
after setting up powerline. This causes the mode line to not change when Emacs is unfocused.
It seems that for some reason Emacs doesn't apply the mode-line-inactive
face to the currently active modeline after losing focus (at least after switching to another application, since after switching to another Emacs frame, it does work [as long as the powerline-unset-selected-window
is registered to the focus-out-hook
hook list, otherwise, there is some strange behavior between the frames after switching to another application]). Is there any way to apply the mode-line-inactive
face to the currently active modeline, encapsulate it in a function and call it after the "focus-out" event?
same issue, I use it fullscreen, switching to other app and back again to emacs, causes the colors not to display correctly for the separators...
there is PR to change the detection code which may fix this but i don't use powerline anymore and i haven't heard of a great solution