Today I read http://unix.stackexchange.com/questions/14159/how-do-i-find-the-window-dimensions-and-position-accurately-including-decoration and I think the reason might be related to it. Yes I workaround it in http://jidanni.org/comp/configuration/ , but I would just like to let you know. Emacs 25.