summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-05-08compositor: Adapt to wl_surface going awayKristian Høgsberg10-94/+82
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.
2013-05-07input: Allocate pointer/keyboard/touch structsKristian Høgsberg3-85/+81
2013-05-07input: Eliminate weston_seat::has_pointer/keyboard/touchKristian Høgsberg4-19/+6
We can just look at weston_seat::pointer/keyboard/touch now.
2013-05-07data-device: Update drag icon position from configure and motion handlersKristian Høgsberg4-42/+19
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().
2013-05-07data-device: Map drag icon in configure handlerKristian Høgsberg1-24/+14
This how we usually do it, and we avoid 'polling' for mapping in weston_seat_update_drag_surface().
2013-05-07data-device: Setup and release drag surface and beginning and end of dragKristian Høgsberg2-39/+4
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.
2013-05-07data-device: Fix dnd regression from weston_seat rewriteKristian Høgsberg1-5/+5
We had a drag_surface in wl_seat and weston_seat which confused me during the rewrite.
2013-05-07data-device: Don't emit a signal for drag icon changesKristian Høgsberg3-21/+2
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.
2013-05-07input: Move drag handling to data-device.cKristian Høgsberg3-131/+136
2013-05-07compositor: Move fan_debug to gl-rendererKristian Høgsberg3-18/+20
With the debug binding infrastructure, we can do this all inside gl-renderer.c.
2013-05-07input: Merge wl_seat into weston_seatKristian Høgsberg23-270/+266
2013-05-06input: Remove wl_seat destroy signalKristian Høgsberg5-8/+3
We already have one on weston_seat.
2013-05-06input: Fold wl_seat init/release into weston_seat init/releaseKristian Høgsberg2-35/+19
2013-05-06input: Rename wl_touch to weston_touchKristian Høgsberg2-49/+46
This is now a weston object.
2013-05-06input: Rename wl_pointer to weston_pointerKristian Høgsberg6-130/+136
This is now a weston object.
2013-05-06input: Rename weston_device_repick() to weston_seat_repick()Kristian Høgsberg3-4/+4
Old left-over misnaming.
2013-05-06input: Drop find_resource_for_client()Kristian Høgsberg1-15/+2
We can use find_resource_for_surface() instead now that it's all in the same file.
2013-05-06move input code from compositor.c into input.cKristian Høgsberg3-1149/+1191
2013-05-06fold wl_keyboard into weston_keyboardKristian Høgsberg8-130/+127
2013-05-06Import input structs and helper functions from waylandKristian Høgsberg5-1/+1326
2013-05-06editor: Fix some offsets for multi-byte charactersJan Arne Petersen1-52/+48
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-06keyboard: Fix offsets when deleting textJan Arne Petersen1-5/+85
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Rename input_method to wl_input_methodJan Arne Petersen5-178/+178
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>
2013-05-02text: Improve protocol documentation.Jan Arne Petersen2-44/+106
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Rename ::set_panel to ::set_overlay_panelJan Arne Petersen2-5/+9
Also add documentation to input_panel_surface::set_overlay_panel. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Rename text_input to wl_text_inputJan Arne Petersen5-110/+110
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02keyboard: Remove unneded callsJan Arne Petersen1-16/+0
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: delete text on commit_stringJan Arne Petersen2-14/+33
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Fix serial handlingJan Arne Petersen7-86/+73
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Only allow input-method started by weston to bindJan Arne Petersen1-7/+14
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Add output argument to set_toplevelJan Arne Petersen3-28/+27
Allow to specify an output for a toplevel input panel surface. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Add support for panels following the cursorJan Arne Petersen5-11/+93
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>
2013-05-02editor: Send cursor position to the input methodJan Arne Petersen1-0/+38
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02editor: Only delete on backspace key releasedJan Arne Petersen1-0/+3
Do not delete two characters when key is pressed and released. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Add "none" preedit-styleJan Arne Petersen2-2/+3
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>
2013-05-02text: Rename text_model to text_inputJan Arne Petersen5-279/+282
Also rename text_model_factory to text_input_manager. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Order requests and events in a nice wayJan Arne Petersen4-112/+112
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: rename text_model::commit to commit_stateJan Arne Petersen3-5/+5
Use ::commit_state as a request name to make clear what is commited. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02view: g_type_init() is deprecated in glib >= 2.35Jan Arne Petersen1-0/+2
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Fix some text and input-method docsKrzesimir Nowak2-30/+46
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Fix password content hint valueKrzesimir Nowak1-1/+1
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>
2013-05-02editor: Reset text model on resetJan Arne Petersen1-4/+3
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>
2013-05-02keyboard: Reset state on activateJan Arne Petersen1-6/+28
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Add example for language/text directionJan Arne Petersen2-4/+121
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02text: Add language and text-direction to protocolJan Arne Petersen7-50/+191
Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
2013-05-02xwm: Reparent client windows into ARGB windowsKristian Høgsberg2-6/+44
We used to rely on an ugly hack where the xwayland server would always report RGB X windows as having ARGB pixels, so that texturing from these would also sample the undefined alpha. We also relied on Xrender rendering to RGB X windows to write the alpha channel correctly, so that when we texture from the RGB X window as an ARGB surface we end up getting the alpha written by Xrender. That was obviously all broken. We can instead reparent client windows into ARGB frame windows. That way we can render the decorations using a ARGB render pictformat and sample back those alpha values in a well-defined way. We can also unbreak xwayland and let it report RGB pixel format for RGB windows. We still need the opaque region or the RGB-only client window but that's OK.
2013-05-02Move the optional output name property from drm_output to weston_outputRichard Hughes3-7/+6
In the future the CMS plugins will need to read the config file and setup a list of hardcoded names to ICC profiles.
2013-05-01Fix not checking return value of drmIoctl function call to map dumb bufferChris Michael1-2/+1
in drm_fb_create_dumb, the return value of the drmIoctl function call to map the dumb buffer was never checked, thus the following "if (ret)" check was invalid as it was checking the previous return value from the above drmModeAddFB call. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01Include config.h in compositor-drm.cRichard Hughes1-0/+4
2013-05-01Add a set_gamma vfunc on weston_outputRichard Hughes2-0/+31