<br><br><div class="gmail_quote">On Thu, May 31, 2012 at 11:10 AM, Kristian Høgsberg <span dir="ltr"><<a href="mailto:hoegsberg@gmail.com" target="_blank">hoegsberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, May 27, 2012 at 02:25:02PM -0600, Scott Moreau wrote:<br>
> Here we create a new client/compositor interface in weston to allow<br>
> clients to report their x/y cursor position to the compositor. These<br>
> values are then used to center the zoom area on this point. This<br>
> is useful for everyone, especially people who are visually impaired.<br>
> ---<br>
><br>
> Made changes discussed for v3 patch.<br>
<br>
</div>Committed as is, but just a brief comment below.<br>
<br>
Kristian<br></blockquote><div class="h5"><br>Thanks!<br><br><br>
><br>
> @@ -72,6 +73,7 @@ struct display {<br>
> struct wl_shell *shell;<br>
> struct wl_shm *shm;<br>
> struct wl_data_device_manager *data_device_manager;<br>
> + struct text_cursor_position *text_cursor_position;<br>
> EGLDisplay dpy;<br>
> EGLConfig argb_config;<br>
> EGLContext argb_ctx;<br>
> @@ -149,6 +151,7 @@ struct window {<br>
> int resize_needed;<br>
> int type;<br>
> int transparent;<br>
> + int send_cursor_position;<br>
> struct input *keyboard_device;<br>
> enum window_buffer_type buffer_type;<br>
><br>
> @@ -1822,6 +1825,9 @@ keyboard_handle_key(void *data, struct wl_keyboard *keyboard,<br>
> if (!window || window->keyboard_device != input)<br>
> return;<br>
><br>
> + if (state)<br>
> + window->send_cursor_position = 1;<br>
> +<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I don't think we should track this in window.c. If a client wants to<br>
set the text cursor position, we shouldn't second guess it. Maybe the<br>
cursor is moving because text got pasted into the window or such.<br></blockquote><div><br><br>Ok, I'm a little confused about this then. Here, <a href="http://lists.freedesktop.org/archives/wayland-devel/2012-May/003597.html">http://lists.freedesktop.org/archives/wayland-devel/2012-May/003597.html</a> you made this comment:<br>
<br> "Shouldn't we only update position when the user actually presses a
key? What if you're dumping a lot of data to the terminal?"<br><br>This is the only reason I even installed this additional code.<br><br><br><br><br>Thanks,<br><br>Scott<br></div></div><br>