kivy/kivy — pull request #2255 by kived (2014-06-11 20:08:03+00:00)
Title: force initial window size

On Ubuntu (with some window managers), newly created windows are capped to the size of the primary display. However, Kivy and Pygame do not know that the created window is a different size, so everything is rendered at the requested size and the bottom of the app is clipped.

This only happens with resizable windows. So to fix this problem, I modified `WindowPygame` to call `_pygame_set_mode()` a second time if the window is resizable. This forces the requested window size, regardless of display size. It might be better to use the size the WM provided, but there doesn't seem to be any way to read that from Pygame until a resize event happens.