Some applications in full screen leave an invisible gap between top of window and the top border of the screen. (win 10, multiple monitors)

I notice this problem with emacs, notepad++, and WinRAR. When their window is maximized to full screen, there's actually an invisible gap between the top of the window to the top edge of the screen.

This is extremely annoying because when you want to close these applications by clicking on the "X" at the top right corner, your mouse will be actually clicking the application running behind the current one, resulting in that app below closed.

I am not sure if the problem comes from some common stuff in these IDE, or if it is an OS problem. If it helps, I am running win 10 with multiple monitors. For single monitor, this problem doesn't occur.


Solution 1:

I had the same issue for years. Sometimes it was extremely annoying because I was in the middle of something and clicking on X on Notepad++ was closing my IntelliJ instance behind.

Then I checked my scale factor. it was 130. I changed it to 125 and now the problem is gone. I think this has to do with the fact that we are in a digital pixel world, and you can't divide 1 to 3 and get a fixed value, as you get 0.(3), while dividing 1 to 2.5 gives you 0.4.

Why this happens only for Notepad++, I don't know, probably it has to do with the way the author uses the underlying GUI. Maybe someone should open a defect on this.

Anyway, if anyone else has the same issue, think from mathematical perspective and try to set custom scale factors that don't give you continuous numbers as a division result. This is my observation so far.