summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-18compositor: handle YUV buffers.01.yuv_buffersGwenole Beauchesne3-18/+64
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-05-18compositor: add YUV shaders.Gwenole Beauchesne2-0/+45
Add shaders for NV12 (2 planes) and YUV (3 planes). Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-05-18compositor: factor out RGB shader.Gwenole Beauchesne3-23/+35
Simplify RGB shader code and split off common code that could be reused. This is preparatory work for YUV shaders. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-05-18compositor: prepare for multi-planar surfaces.Gwenole Beauchesne3-32/+69
Make weston_surface::texture and ::surface an array, while keeping [0] for RGB surfaces. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2012-05-17xserver: Set input region for xwm surfacesHEADmasterKristian Høgsberg1-0/+6
2012-05-17evdev: Improve touchpad support and add motion filtersJonas Ådahl6-76/+951
Touchpad related code has been rewritten and moved to its own file accessed by evdev via the dispatch interface. The various functionality implemented are anti-jitter (don't jumping around), smoother motions, touch detection, pointer acceleration and some more. Pointer acceleration is implemented as one generic part, and one touch specific part (a profile). Some ideas and magic numbers comes from xserver and xf86-input-synaptics. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-17evdev: Add event process dispatchingJonas Ådahl3-68/+167
By setting an 'evdev_dispatch' struct in 'evdev_input_device' during device configuration the 'process' function in the associated interface will be called with received input events. If none is set, a fallback handler will be set instead that handle generic input functionality. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-17compositor: Disable blending for WL_SHM_FORMAT_XRGB8888 surfaceKristian Høgsberg2-1/+10
Will it blend? No.
2012-05-17compositor-x11: Check the right variable after creating dummy pbufferKristian Høgsberg1-1/+1
2012-05-17tests: Rename left-over caps_mask to capabilityKristian Høgsberg1-5/+5
2012-05-16compositor: Remove resource from list when we destroy seat devicesKristian Høgsberg1-0/+3
2012-05-16xwm: Resize frame window if child window changes sizeKristian Høgsberg1-0/+21
2012-05-16simple-egl: Fix crash and simplifyKristian Høgsberg1-30/+12
pointer_handle_enter() expects the struct display as the user data, so just move wl_seat and wl_pointer into struct display.
2012-05-16compositor: Add opaque rect shader featureKristian Høgsberg3-0/+31
This lets us mark a rectangle in a texture and force the alpha to one inside. This is useful for textures coming from X windows, where the X window part is xRGB, that is 32 bit RGB with an undefined alpha channel and the decorations are rendered with a well-defined alpha channel.
2012-05-16xserver: Use frame rendering code from cairo-utilKristian Høgsberg2-38/+17
2012-05-16Convert wl_input_device to wl_seat (and friends)Daniel Stone18-1022/+991
wl_input_device has been both renamed and split. wl_seat is now a virtual object representing a group of logically related input devices with related focus. It now only generates one event: to let clients know that it has new capabilities. It takes requests which hand back objects for the wl_pointer, wl_keyboard and wl_touch interfaces it exposes which all provide the old input interface, just under different names. This commit tracks these changes in weston and the clients, as well as similar renames (e.g. weston_input_device -> weston_seat). Some other changes were necessary, e.g. renaming the name for the visible mouse sprite from 'pointer' to 'cursor' so as to not conflict. For simplicity, every seat is always exposed with all three interfaces, although this will change as time goes on. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-16Convert wl_fixed_t to int in weston_output_update_zoom().Scott Moreau2-4/+6
This way, we don't have to use wl_fixed_to_int() for each call to weston_output_update_zoom(). It accepts wl_fixed_t types and converts internally.
2012-05-16xwm: memset struct to 0Kristian Høgsberg1-0/+1
We rely on focus_window being initialize to NULL.
2012-05-16shell: Remove lock/unlock listeners on shutdownKristian Høgsberg1-0/+3
2012-05-15xwm: Paint different decoration for active surfaceKristian Høgsberg1-3/+25
2012-05-15src: Don't add COMPOSITOR_CFLAGS to AM_CPPFLAGSKristian Høgsberg1-12/+19
It's a CFLAGS variable, not CPPFLAGS and we don't want to add it to every target. In particular we don't want anything leaking into weston-launch.
2012-05-15configure: Add pixman-1 to the compositor required packagesKristian Høgsberg1-1/+1
We used to get it through the IMAGE_LIBS/CFLAGS but we use it directly in the compositor to add it as a direct dependency.
2012-05-15Rename libconfig-parser to libsharedKristian Høgsberg3-13/+12
Still a bad name.
2012-05-15Move cairo-util to shared/Kristian Høgsberg10-15/+17
2012-05-15window: Move frame rendering to cairo-utilKristian Høgsberg3-61/+83
2012-05-15window: Move theme rendering code to cairo-utilKristian Høgsberg3-62/+67
2012-05-15window: Move all frame theme related state into new struct themeKristian Høgsberg1-54/+69
2012-05-15xwm: Don't repaint after destroying windowKristian Høgsberg1-6/+10
2012-05-15window: Compute title vertical position based on font extentsKristian Høgsberg1-1/+7
We just fudged it before.
2012-05-15window: Store the outputs that the window is onRob Bradford1-2/+51
Using the surface enter/leave events track which outputs the window is on and store those in a "window_output_list" on the window. To create this list we define a struct window_output that is the list relationship between the window and the output.
2012-05-15compositor: Fix cursor positioning right after input_device.attachAnder Conselvan de Oliveira1-2/+2
The type of fields x and y in wl_input_device was changed to wl_fixed_t but input_device_attach() was still using it as if it were integer. This bug caused the pointer sprite to be configured in the wrong place on the screen (usually outside the visible area) but it would soon be corrected in notify_motion() making it hard to notice and usually only causing a quick flicker.
2012-05-15tests: Fix event-testAnder Conselvan de Oliveira1-1/+2
notify_motion() now receives coordinates in wl_fixed_t but the test was still passing integers.
2012-05-15xwm: Update window title when window property changeKristian Høgsberg1-87/+124
2012-05-15xwm: Put a title bar on itKristian Høgsberg1-7/+37
2012-05-15xwm: Reparent X windows, paint a red decoration frameKristian Høgsberg2-16/+166
It's red, and that's about it.
2012-05-14compositor: Only call weston_surface_update_transform from repaintKristian Høgsberg1-12/+0
2012-05-14compositor: Remove a few leftover screenshooter declarationsKristian Høgsberg1-3/+0
2012-05-14toytoolkit: Recalculate input region if client has modified it's size.Scott Moreau1-10/+11
If a client changes it's width/height values in it's widget resize handler, the input region will be wrong because of the assumptions toytoolkit makes in frame_resize_handler(). So far, gears is the only client that does this.
2012-05-14window: fix missed xkb API adaptationPekka Paalanen1-1/+1
Oddly enough, this failed to build on Android, but not otherwise. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-05-14simple-shm: Handle ping event.Scott Moreau1-0/+28
Since simple-shm does not use toytoolkit, it needs to respond to ping events so it is not deemed unresponsive.
2012-05-11clients: Remove superfluous #includesKristian Høgsberg6-12/+0
In particular window.c and many clients were including glib.h without using it and without the right cflags.
2012-05-11Update to new libxkbcommon APIKristian Høgsberg6-81/+72
We no longer depend on xproto, we use xkbcommon keycodes now. Yay!
2012-05-10resizor: More resizingKristian Høgsberg1-47/+87
Interacts better with interactive resizing, left/right keys now changes window width.
2012-05-10simple-egl: Add option -o to make surface opaqueKristian Høgsberg1-3/+12
2012-05-10clients: Add motion event trails to clickdotJonas Ådahl1-5/+138
Useful for testing pointer device. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-10evdev: Use wl_fixed_t for relative motionsJonas Ådahl1-7/+10
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-10window.c: frame_button: Maximize, minimize, close, icon buttons in window frameMartin Minarik6-4/+258
2012-05-10window.c: Just use float instead of GLfloat, remove GLES2.h includeKristian Høgsberg10-32/+31
2012-05-10Fix a few -pedantic warningsKristian Høgsberg7-16/+16
We're not enabling -pedantic by default, but a quick test brought up a few issues that we should fix.
2012-05-10compositor: Report refresh rates in mHzKristian Høgsberg2-3/+16
We compute the higher resolution from the mode timing parameters.