Kristian Høgsberg
5a9fb35c89
data-device: Eliminate two small helper functions
...
device_setup_new_drag_surface() and device_release_drag_surface() are both
now fairly small and only called from data_device_start_drag() and
data_device_end_grab() respectively. Folding the two functions in where
they're called from simplifies the code flow a bit.
12 years ago
Kristian Høgsberg
c43aad1ab4
data-device: Rename generic weston_drag 'surface' field to 'icon'
12 years ago
Kristian Høgsberg
054c50a6de
data-device: Move all drag-related fields out of weston_seat
...
We can now allocate a temporary weston_drag structure that we keep all
this drag-and-drop related state in.
12 years ago
Kristian Høgsberg
195b869f0e
input: Move sprite fields into weston_pointer from weston_seat
12 years ago
Kristian Høgsberg
9e885d4bec
simple-egl: Add support for EGL_EXT_swap_buffer_with_damage
...
This new EGL extension lets us communicate the damage area to the compositor
by using eglSwapBuffersWithDamge() instead of the regular eglSwapBuffer().
http://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_swap_buffers_with_damage.txt
12 years ago
Kristian Høgsberg
fe7aa90ed4
compositor: Adapt to wl_surface going away
...
struct weston_surface is now the only surface type we have (in core, shell.c
has shell_surface, of course). A lot of code gets simpler and we never
have to try to guess whether an API takes a wl_surface or a weston_surface.
12 years ago
Kristian Høgsberg
a4036bbd23
input: Allocate pointer/keyboard/touch structs
12 years ago
Kristian Høgsberg
2bf876282f
input: Eliminate weston_seat::has_pointer/keyboard/touch
...
We can just look at weston_seat::pointer/keyboard/touch now.
12 years ago
Kristian Høgsberg
aad8099c2f
data-device: Update drag icon position from configure and motion handlers
...
We can now update the drag icon position directly from the configure
handler or the grab motion handler, and no longer need
weston_seat_update_drag_surface().
12 years ago
Kristian Høgsberg
415f30cc08
data-device: Map drag icon in configure handler
...
This how we usually do it, and we avoid 'polling' for mapping in
weston_seat_update_drag_surface().
12 years ago
Kristian Høgsberg
5f95557631
data-device: Setup and release drag surface and beginning and end of drag
...
Previously we just got the drag_icon signal and had to figure out what
changed. Now we can directly setup or release the drag icon when the
drag starts and stops.
12 years ago
Kristian Høgsberg
40e44ab18d
data-device: Fix dnd regression from weston_seat rewrite
...
We had a drag_surface in wl_seat and weston_seat which confused me during
the rewrite.
12 years ago
Kristian Høgsberg
624d8f2293
data-device: Don't emit a signal for drag icon changes
...
The signal used to be in libwayland-server and the listener in weston, but
now they're both in the same file, so lets stop using signal.
12 years ago
Kristian Høgsberg
7848bb687c
input: Move drag handling to data-device.c
12 years ago
Kristian Høgsberg
8799d41b1e
compositor: Move fan_debug to gl-renderer
...
With the debug binding infrastructure, we can do this all inside
gl-renderer.c.
12 years ago
Kristian Høgsberg
e314875d00
input: Merge wl_seat into weston_seat
12 years ago
Kristian Høgsberg
4912454ba4
input: Remove wl_seat destroy signal
...
We already have one on weston_seat.
12 years ago
Kristian Høgsberg
4a2a274350
input: Fold wl_seat init/release into weston_seat init/release
12 years ago
Kristian Høgsberg
e329f36533
input: Rename wl_touch to weston_touch
...
This is now a weston object.
12 years ago
Kristian Høgsberg
02bbabbd56
input: Rename wl_pointer to weston_pointer
...
This is now a weston object.
12 years ago
Kristian Høgsberg
a71e8b2e4d
input: Rename weston_device_repick() to weston_seat_repick()
...
Old left-over misnaming.
12 years ago
Kristian Høgsberg
80fb82df3a
input: Drop find_resource_for_client()
...
We can use find_resource_for_surface() instead now that it's all in the
same file.
12 years ago
Kristian Høgsberg
b5e26104ee
move input code from compositor.c into input.c
12 years ago
Kristian Høgsberg
29139d4a45
fold wl_keyboard into weston_keyboard
12 years ago
Kristian Høgsberg
2158a889a1
Import input structs and helper functions from wayland
12 years ago
Jan Arne Petersen
685168661a
editor: Fix some offsets for multi-byte characters
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
d8aa3327b3
keyboard: Fix offsets when deleting text
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
cc75ec11ca
text: Rename input_method to wl_input_method
...
Also rename input_method_context to wl_input_method_context,
input_panel to wl_input_panel and input_panel_surface to
wl_input_panel_surface.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
2f51d8a2ff
text: Improve protocol documentation.
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
70d942b4d7
text: Rename ::set_panel to ::set_overlay_panel
...
Also add documentation to input_panel_surface::set_overlay_panel.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
62ece76b1e
text: Rename text_input to wl_text_input
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
8f2f764c0c
keyboard: Remove unneded calls
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
919bc149e1
text: delete text on commit_string
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
00191c7c4a
text: Fix serial handling
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
b41531a88e
text: Only allow input-method started by weston to bind
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
7cd29e199a
text: Add output argument to set_toplevel
...
Allow to specify an output for a toplevel input panel surface.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
14da96bf81
text: Add support for panels following the cursor
...
Add input_panel_surface::set_panel to specify input panel surfaces which
are overlaying the application and are following the input cursor.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
fe89e713ca
editor: Send cursor position to the input method
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
dfd344609a
editor: Only delete on backspace key released
...
Do not delete two characters when key is pressed and released.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
85ecaa5d75
text: Add "none" preedit-style
...
Use "default" preedit style as default. "None" is used when the
composing text should look like non-composing text.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
78d00e45cc
text: Rename text_model to text_input
...
Also rename text_model_factory to text_input_manager.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
7ef8effca5
text: Order requests and events in a nice way
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
fa3573852d
text: rename text_model::commit to commit_state
...
Use ::commit_state as a request name to make clear what is commited.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
d160a309e6
view: g_type_init() is deprecated in glib >= 2.35
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Krzesimir Nowak
8418a0cc8d
text: Fix some text and input-method docs
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Krzesimir Nowak
f62e8cfae7
text: Fix password content hint value
...
0xc in this case was a combination of "autocapitalization" (0x4) and
"lowercase" (0x8) instead of "hidden_text" (0x40) and "sensitive_data"
(0x80).
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
08015b6ba0
editor: Reset text model on reset
...
There were some reset calls missing, which resulted in wrong preedit
state on input method side.
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
b8b76a603f
keyboard: Reset state on activate
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
9d41913eff
text: Add example for language/text direction
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago
Jan Arne Petersen
ece6b5af51
text: Add language and text-direction to protocol
...
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
12 years ago