dmenu size (number of lines) should be limited in landscape, because now on many menus top and bottom items can not be seen.
Ideally, this should be calculated as a function of menu-item height, so as to leave enough room below/above the edge of the menu for the page up/down and home/end regions.