randr: handle (x, y) > 0

x and y can be larger than 0, so we must set a high start value.
This commit is contained in:
Sebastian Dransfeld 2014-12-17 10:22:48 +01:00
parent 9844c738f7
commit 7ddc9d73ff
1 changed files with 3 additions and 1 deletions

View File

@ -551,7 +551,9 @@ _e_randr_apply(void)
/* get the min and max screen size */
ecore_x_randr_screen_size_range_get(root, &minw, &minh, &maxw, &maxh);
printf("RRR0: size range: %ix%i -> %ix%i\n", minw, minh, maxw, maxh);
nx = ny = nw = nh = 0;
nx = maxw;
ny = maxh;
nw = nh = 0;
EINA_LIST_FOREACH(e_randr->crtcs, l, crtc)
{
int x = 0, y = 0, w = 0, h = 0;