ch11ng / exwm

Emacs X Window Manager
2.85k stars 134 forks source link

window-size-change-functions triggered on window refocus #857

Open jsilve24 opened 2 years ago

jsilve24 commented 2 years ago

I find that when using EXWM window-size-change-functions are triggered when switching between windows (when no size change has occured).

Try running the following and then switch between windows and see when it is triggered.

(add-hook 'window-size-change-functions (lambda (arg) (message "size change detected"))) I have confirmed that this behavior does not occur when using emacs -Q and have also confirmed that it does not occur when I use my config without exwm. It does occur when I use my config with a default exwm configuration.

That said, it is possible that its some interaction with other parts of my config but I could not get the emacs -Q --eval "(progn (package-initialize) (require 'exwm-config) (exwm-config-default))" setup to work properly in the 20 min I tried to get this to work.

Thank you for all your hard work and my sincere appologies if this really is just some interaction with other parts of my config (though at this point I doubt it)!

nawetimebomb commented 2 years ago

Hi,

It really may be an interaction between packages. It happens to me while using golden-ratio (which makes sense, since it's changing the size of the windows), if I disable golden-ratio, it will not trigger any window-size-change-function. I tested it without EXWM enabled though.

medranocalvo commented 2 years ago

@jsilve24: could you check whether the issue persists when EXWM is not enabled?

@elnawe: thank you for helping out!