fix a bug in a height computing
This commit is contained in:
parent
9c747d1986
commit
8d63ecd3aa
2
screen.c
2
screen.c
|
@ -111,7 +111,7 @@ get_screen_bycoord(Display *disp, int x, int y)
|
|||
|
||||
for(i = 0; i < screen_number; i++)
|
||||
if(x >= si[i].x_org && x < si[i].x_org + si[i].width
|
||||
&& y >= si[i].y_org && y < si[i].x_org + si[i].height)
|
||||
&& y >= si[i].y_org && y < si[i].y_org + si[i].height)
|
||||
{
|
||||
XFree(si);
|
||||
return i;
|
||||
|
|
Loading…
Reference in New Issue