summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2012-06-01 12:46:10 -0600
committerKristian Høgsberg <krh@bitplanet.net>2012-06-04 11:07:54 -0400
commit9295ce05abadf548acf3bbfb17f6231edc5b7129 (patch)
treeaa9e7e161c20220f34b93dc48bc10df7e46e87ea
parentae71220fc9fbb9b43af4fcf8f3f57305ffcd9110 (diff)
Drop user input detection from text cursor position implementation.
-rw-r--r--clients/window.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/clients/window.c b/clients/window.c
index 88bc8a4..72becab 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -144,7 +144,6 @@ struct window {
int resize_needed;
int type;
int transparent;
- int send_cursor_position;
struct input *keyboard_device;
enum window_buffer_type buffer_type;
@@ -1835,9 +1834,6 @@ keyboard_handle_key(void *data, struct wl_keyboard *keyboard,
if (!window || window->keyboard_device != input || !input->xkb.state)
return;
- if (state)
- window->send_cursor_position = 1;
-
num_syms = xkb_key_get_syms(input->xkb.state, code, &syms);
mask = xkb_state_serialize_mods(input->xkb.state,
@@ -2697,15 +2693,13 @@ window_set_text_cursor_position(struct window *window, int32_t x, int32_t y)
struct text_cursor_position *text_cursor_position =
window->display->text_cursor_position;
- if (!window->send_cursor_position || !text_cursor_position)
+ if (!text_cursor_position)
return;
text_cursor_position_notify(text_cursor_position,
window->surface,
wl_fixed_from_int(x),
wl_fixed_from_int(y));
-
- window->send_cursor_position = 0;
}
void
@@ -2794,7 +2788,6 @@ window_create_internal(struct display *display, struct window *parent)
window->allocation.height = 0;
window->saved_allocation = window->allocation;
window->transparent = 1;
- window->send_cursor_position = 0;
window->type = TYPE_NONE;
window->input_region = NULL;
window->opaque_region = NULL;