fixes in keyboard ctrl
This commit is contained in:
parent
3ad2134dd1
commit
f024fc5592
|
@ -1556,7 +1556,7 @@ static void select_frame(int prev)
|
||||||
}
|
}
|
||||||
el_size(sel_el, &w, &h);
|
el_size(sel_el, &w, &h);
|
||||||
x = el(sel_el)->mx;
|
x = el(sel_el)->mx;
|
||||||
y = el(sel_el)->mx;
|
y = el(sel_el)->my;
|
||||||
if (x < el(sel_el)->x || y < el(sel_el)->y ||
|
if (x < el(sel_el)->x || y < el(sel_el)->y ||
|
||||||
x > el(sel_el)->x + w || y > el(sel_el)->y + h) {
|
x > el(sel_el)->x + w || y > el(sel_el)->y + h) {
|
||||||
x = el(sel_el)->x + w / 2;
|
x = el(sel_el)->x + w / 2;
|
||||||
|
|
|
@ -1556,7 +1556,7 @@ xref_t txt_box_xrefs(textbox_t tbox)
|
||||||
for (line = box->line; line; line = line->next) {
|
for (line = box->line; line; line = line->next) {
|
||||||
if (line->y + line->h < box->off)
|
if (line->y + line->h < box->off)
|
||||||
continue; /* too high */
|
continue; /* too high */
|
||||||
if (line->y > box->h + box->off)
|
if (line->y + line->h > box->h + box->off)
|
||||||
break; /* bottom */
|
break; /* bottom */
|
||||||
for (word = line->words; word; word = word->next) {
|
for (word = line->words; word; word = word->next) {
|
||||||
xref = word->xref;
|
xref = word->xref;
|
||||||
|
|
Reference in a new issue