Permalink
Browse files

Make sure coords for fullscreen are initialized to something sensible…

  • Loading branch information...
1 parent 0cddff3 commit 464b9ee133d5a925af796291955bcfc9bbf03967 mikamika committed Sep 18, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/xfullscreen.c
View
@@ -263,6 +263,10 @@ void xfullscreen_get_position( xfullscreen_t *xf, int window_x, int window_y,
int max_area = -1;
int i;
+ *x = xf->heads[ 0 ].x;
+ *y = xf->heads[ 0 ].y;
+ *w = xf->heads[ 0 ].w;
+ *h = xf->heads[ 0 ].h;
for( i = 0; i < xf->nheads; i++ ) {
int head_x1 = xf->heads[ i ].x;
int head_x2 = xf->heads[ i ].x + xf->heads[ i ].w - 1;

0 comments on commit 464b9ee

Please sign in to comment.