gonewest818 / dimmer.el

Interactively highlight which buffer is active by dimming the others.
GNU General Public License v3.0
267 stars 14 forks source link

Buffer is dimmed very briefly after frame is focused (Gnome) #57

Closed WhatDothLife closed 2 years ago

WhatDothLife commented 2 years ago

I noticed that when I'm changing my focus to an Emacs frame, the current buffer is dimmed for a short time (looks like it's blinking). Is there any chance this can be fixed by using another hook?

gonewest818 commented 2 years ago

Hard to say what’s happening without debugging a reproducible case.

However - There is a configuration setting that controls how dimmer responds when emacs loses focus…some people prefer to leave the most recently active window highlighted, and I prefer if dimmer dims everything. Anyway, that’s a choice and if you disable that setting it might help in your case …

Doesn’t explain why the flicker is happening, of course, but would maybe reduce the annoyance.

On Oct 29, 2021, at 12:57 PM, Michael Wernthaler @.***> wrote:

 I noticed that when I'm changing my focus to an Emacs frame, the current buffer is dimmed for a short time (looks like it's blinking). Is there any chance this can be fixed by using another hook?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

WhatDothLife commented 2 years ago

Indeed, setting dimmer-watch-frame-focus-events to nil solved the issue. Unfortunately, it took me way too much time to figure out it has to be set before dimmer-mode is invoked for the first time. Otherwise, it has no effect for me.

Maybe, the documentation of the variable could be extended. So far, there's only this hint:

Restart Emacs after changing this configuration.

Thank you for your quick response (again!). I'm a huge fan of dimmer, it's one of my most valuable packages.

gonewest818 commented 2 years ago

Great, I'm glad the workaround is working out for you.

Appreciate the feedback on the docs, too! I'll make that clearer.

I'm curious to see a reproducible case -- if anyone out there happens to pinpoint a set of conditions when this happens, it would be good to know.

Thanks

WhatDothLife commented 2 years ago

I think it might actually be a Gnome problem. The Emacs frame briefly loses focus when the navigation window is launched and after it exits. Here is a recording:

dimmer

Of course, it wouldn't be surprising if it was due to a quirk of Emacs, but I don't know how to debug it....

gonewest818 commented 2 years ago

Yeah, it does look like the switcher is somehow causing that. Thanks for that video.

On Nov 20, 2021, at 11:34 AM, Michael Wernthaler @.***> wrote:

 I think it might actually be a Gnome problem. The Emacs frame briefly loses focus when the navigation window is launched and after it exits. Here is a recording:

Of course, it wouldn't be surprising if it was due to a quirk of Emacs, but I don't know how to debug it....

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

gonewest818 commented 2 years ago

I pushed an update to the documentation.

I'm considering the rest of the issue a gnome bug and therefore "not a bug" based on the evidence above. Let me know if you think I should reconsider that. thanks-