commit | ac63e5bd7e348f1f743da5d7ed0cb26de07c4796 | [log] [tgz] |
---|---|---|
author | Rob Bradford <rob@linux.intel.com> | Mon Aug 13 14:07:52 2012 +0100 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Mon Aug 13 10:01:46 2012 -0400 |
tree | 3996de44171d438a12b1b8f776a44ebe7dfa61cf | |
parent | b29798bcab9625ce9b07bcf08333e8903cec2119 [diff] |
shell: Enhance the basic random positioning algorithm Place the window in a random position on the output where the first seat with a pointer is. When calculating the random position limit the range to the area that would ensure that the whole surface is visible. If the surface is larger than the output then the surface is placed at the origin of the output. This change is based on the good work of Scott Moreau <oreaus@gmail.com>