mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
[text] account for scrolling in text selections
Account for any scrolling offset in single line mode when calculating the area that should be selected.
This commit is contained in:
parent
e79fd1055d
commit
cf6c2d9721
@ -962,6 +962,12 @@ cursor_paint (ClutterText *self)
|
|||||||
|
|
||||||
range_x = ranges[i * 2]
|
range_x = ranges[i * 2]
|
||||||
/ PANGO_SCALE;
|
/ PANGO_SCALE;
|
||||||
|
|
||||||
|
/* Account for any scrolling in single line mode */
|
||||||
|
if (priv->single_line_mode)
|
||||||
|
range_x += priv->text_x;
|
||||||
|
|
||||||
|
|
||||||
range_width = (ranges[i * 2 + 1] - ranges[i * 2])
|
range_width = (ranges[i * 2 + 1] - ranges[i * 2])
|
||||||
/ PANGO_SCALE;
|
/ PANGO_SCALE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user