aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfullscreen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfullscreen.c b/src/xfullscreen.c
index 017256b..d6da57d 100644
--- a/src/xfullscreen.c
+++ b/src/xfullscreen.c
@@ -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;

Privacy Policy