There are some hard coded steps in which the window manager decorations
are adapted to the dpi ratio of the screen. This was needed especially
on Android devices which have a great bandwidth of dpis (140 ... 550).

There's certainly room for improvement but I have no time for it. If you'd
like to contribute a patch, I'll gladly integrate it.