profile/ivi/weston.git
13 years agocompositor: Fix cursor damaging on multi head
Benjamin Franzke [Tue, 28 Jun 2011 20:56:43 +0000 (22:56 +0200)]
compositor: Fix cursor damaging on multi head

Removing cursors from the surface list,
for usage as hardware cursor needs lower damaging.

Also damge when re-adding to the surface list.

13 years agocompositor: Add a simple WM to the xserver launcher
Kristian Høgsberg [Fri, 1 Jul 2011 14:46:40 +0000 (10:46 -0400)]
compositor: Add a simple WM to the xserver launcher

13 years agocompositor: Damage surface when raising
Kristian Høgsberg [Fri, 24 Jun 2011 12:28:07 +0000 (08:28 -0400)]
compositor: Damage surface when raising

13 years agoopenwfd: Combine native_resolution/rect/width,height into union
Benjamin Franzke [Fri, 24 Jun 2011 11:43:08 +0000 (13:43 +0200)]
openwfd: Combine native_resolution/rect/width,height into union

13 years agocompositor-openwfd: Expose physical size
Benjamin Franzke [Fri, 24 Jun 2011 11:12:21 +0000 (13:12 +0200)]
compositor-openwfd: Expose physical size

13 years agocompositor-openwfd: Expose all modes
Benjamin Franzke [Fri, 24 Jun 2011 11:01:03 +0000 (13:01 +0200)]
compositor-openwfd: Expose all modes

13 years agocompositor-drm: Pass physical size to output_init
Benjamin Franzke [Fri, 24 Jun 2011 09:56:25 +0000 (11:56 +0200)]
compositor-drm: Pass physical size to output_init

13 years agocompositor: Track opaque region of a surface
Kristian Høgsberg [Fri, 24 Jun 2011 01:43:50 +0000 (21:43 -0400)]
compositor: Track opaque region of a surface

13 years agocompositor: Stop repainting below opaque surfaces
Kristian Høgsberg [Fri, 24 Jun 2011 01:25:20 +0000 (21:25 -0400)]
compositor: Stop repainting below opaque surfaces

13 years agocompositor: Fix a couple of region leaks
Kristian Høgsberg [Fri, 24 Jun 2011 01:11:19 +0000 (21:11 -0400)]
compositor: Fix a couple of region leaks

13 years agocompositor: Add helper to damage surface below
Kristian Høgsberg [Fri, 24 Jun 2011 01:00:04 +0000 (21:00 -0400)]
compositor: Add helper to damage surface below

13 years agocompositor: Clip away obscured damage
Kristian Høgsberg [Fri, 24 Jun 2011 00:46:34 +0000 (20:46 -0400)]
compositor: Clip away obscured damage

13 years agocompositor: Accumulate damage in per-surface regions
Kristian Høgsberg [Fri, 24 Jun 2011 00:29:12 +0000 (20:29 -0400)]
compositor: Accumulate damage in per-surface regions

13 years agoMerge remote-tracking branch 'bnf/fix'
Kristian Høgsberg [Thu, 23 Jun 2011 21:44:13 +0000 (17:44 -0400)]
Merge remote-tracking branch 'bnf/fix'

13 years agoSend keyboard_focus only to client surfaces
Benjamin Franzke [Thu, 23 Jun 2011 21:30:30 +0000 (23:30 +0200)]
Send keyboard_focus only to client surfaces

13 years agocompositor: Launch X server rootless
Kristian Høgsberg [Thu, 23 Jun 2011 21:23:28 +0000 (17:23 -0400)]
compositor: Launch X server rootless

13 years agocompsitor: Put background surface in the big surface list
Kristian Høgsberg [Thu, 23 Jun 2011 19:51:43 +0000 (15:51 -0400)]
compsitor: Put background surface in the big surface list

13 years agocompositor: Put cursor surfaces into the big surface list
Kristian Høgsberg [Thu, 23 Jun 2011 19:44:14 +0000 (15:44 -0400)]
compositor: Put cursor surfaces into the big surface list

13 years agocompositor: Change default background to be a png
Kristian Høgsberg [Thu, 23 Jun 2011 19:33:47 +0000 (15:33 -0400)]
compositor: Change default background to be a png

13 years agoUse gbm for compositor-{drm,openwfd}
Benjamin Franzke [Sat, 30 Apr 2011 07:32:11 +0000 (09:32 +0200)]
Use gbm for compositor-{drm,openwfd}

13 years agocompositor-openwfd: Update to mode changes
Benjamin Franzke [Thu, 23 Jun 2011 14:12:17 +0000 (16:12 +0200)]
compositor-openwfd: Update to mode changes

This is just to have it running again.
Todo: Expose all modes, subpixel..

13 years agowindow: Set egl_window_resize late and once
Benjamin Franzke [Thu, 23 Jun 2011 10:10:51 +0000 (12:10 +0200)]
window: Set egl_window_resize late and once

Previously we resized in attach_surface and create_surface.
THe second resize overwrote dx or dy from the first.

13 years agomeego-tablet-shell: Use central sigchild handler
Kristian Høgsberg [Tue, 21 Jun 2011 21:43:31 +0000 (17:43 -0400)]
meego-tablet-shell: Use central sigchild handler

13 years agocompositor: Add socket based activation for X server
Kristian Høgsberg [Tue, 21 Jun 2011 21:32:25 +0000 (17:32 -0400)]
compositor: Add socket based activation for X server

13 years agomeego-tablet-shell: Generalize zoom animation
Kristian Høgsberg [Tue, 21 Jun 2011 20:40:56 +0000 (16:40 -0400)]
meego-tablet-shell: Generalize zoom animation

13 years agoterminal: Don't set terminal size before we have the pty
Kristian Høgsberg [Tue, 21 Jun 2011 20:31:11 +0000 (16:31 -0400)]
terminal: Don't set terminal size before we have the pty

13 years agoDamage surface before attaching new buffer
Kristian Høgsberg [Tue, 21 Jun 2011 19:40:31 +0000 (15:40 -0400)]
Damage surface before attaching new buffer

This reverts cde9bfc80545030a6e5e4579a1adc7263ab7bfe8.  We need to damage the
area covered by the old surface when attaching a new buffer.  The new surface
area will be damaged by the client.

13 years agocompositor: Fix region leak
Kristian Høgsberg [Tue, 21 Jun 2011 19:33:18 +0000 (15:33 -0400)]
compositor: Fix region leak

13 years agocompositor: Store the output rectangle in a region
Kristian Høgsberg [Tue, 21 Jun 2011 19:27:41 +0000 (15:27 -0400)]
compositor: Store the output rectangle in a region

13 years agocompositor: Repaint immediately after pageflip finishes
Kristian Høgsberg [Tue, 21 Jun 2011 19:02:12 +0000 (15:02 -0400)]
compositor: Repaint immediately after pageflip finishes

13 years agocompositor: Decrement buffers busy_count in post_release
Benjamin Franzke [Tue, 21 Jun 2011 17:34:19 +0000 (19:34 +0200)]
compositor: Decrement buffers busy_count in post_release

13 years agoMerge remote-tracking branch 'bnf/buffer.release-2'
Kristian Høgsberg [Tue, 21 Jun 2011 17:10:01 +0000 (13:10 -0400)]
Merge remote-tracking branch 'bnf/buffer.release-2'

Conflicts:
compositor/compositor.h

13 years agoImplement buffer.release event
Benjamin Franzke [Fri, 6 May 2011 17:12:33 +0000 (19:12 +0200)]
Implement buffer.release event

13 years agoMerge remote-tracking branch 'bnf/fixes-2'
Kristian Høgsberg [Tue, 21 Jun 2011 15:31:38 +0000 (11:31 -0400)]
Merge remote-tracking branch 'bnf/fixes-2'

13 years agocompositor: Send out more detailed output events
Kristian Høgsberg [Tue, 21 Jun 2011 15:16:58 +0000 (11:16 -0400)]
compositor: Send out more detailed output events

13 years agocompositor: Send frame event after redraw
Benjamin Franzke [Tue, 21 Jun 2011 14:33:27 +0000 (16:33 +0200)]
compositor: Send frame event after redraw

13 years agocompositor: Do not leak old client buffers
Benjamin Franzke [Tue, 21 Jun 2011 08:44:37 +0000 (10:44 +0200)]
compositor: Do not leak old client buffers

13 years agosimple-client: Trigger first drawing by hand
Benjamin Franzke [Tue, 21 Jun 2011 07:53:15 +0000 (09:53 +0200)]
simple-client: Trigger first drawing by hand

13 years agocompositor: Only use GL_LINEAR when surface is transformed
Kristian Høgsberg [Mon, 20 Jun 2011 23:48:16 +0000 (19:48 -0400)]
compositor: Only use GL_LINEAR when surface is transformed

13 years agocompositor: Damage after setting surface width and height
Kristian Høgsberg [Sat, 18 Jun 2011 10:25:17 +0000 (06:25 -0400)]
compositor: Damage after setting surface width and height

13 years agocompositor-wayland: Update to new APIs
Kristian Høgsberg [Sat, 18 Jun 2011 10:22:05 +0000 (06:22 -0400)]
compositor-wayland: Update to new APIs

13 years agoMove map requests to shell
Kristian Høgsberg [Sat, 18 Jun 2011 10:12:54 +0000 (06:12 -0400)]
Move map requests to shell

13 years agocompositor-x11: Support fullscreen mode
Kristian Høgsberg [Sat, 18 Jun 2011 08:20:54 +0000 (04:20 -0400)]
compositor-x11: Support fullscreen mode

13 years agoclients: Add an optional roundtrip for visual lookup
Benjamin Franzke [Tue, 31 May 2011 09:36:31 +0000 (11:36 +0200)]
clients: Add an optional roundtrip for visual lookup

13 years agocompositor: Don't pass a non-existing varying into the fragment shader
Kristian Høgsberg [Thu, 19 May 2011 16:05:51 +0000 (12:05 -0400)]
compositor: Don't pass a non-existing varying into the fragment shader

13 years agomeego-tablet-shell: Tweak spring constants
Kristian Høgsberg [Thu, 19 May 2011 15:55:50 +0000 (11:55 -0400)]
meego-tablet-shell: Tweak spring constants

13 years agoUpdate .gitignore
Casey Dahlin [Thu, 19 May 2011 02:34:10 +0000 (22:34 -0400)]
Update .gitignore

13 years agoview: Set opaque when going fullscreen
Kristian Høgsberg [Fri, 13 May 2011 17:52:18 +0000 (13:52 -0400)]
view: Set opaque when going fullscreen

13 years agowindow: Add support for opaque windows
Kristian Høgsberg [Fri, 13 May 2011 17:45:17 +0000 (13:45 -0400)]
window: Add support for opaque windows

13 years agowindow.c: Deal with visual changes
Kristian Høgsberg [Fri, 13 May 2011 17:24:56 +0000 (13:24 -0400)]
window.c: Deal with visual changes

13 years agoview: Add fullscreen option
Kristian Høgsberg [Fri, 13 May 2011 17:54:19 +0000 (13:54 -0400)]
view: Add fullscreen option

13 years agoview: Set resize handler so fullscreen doesn't crash
Kristian Høgsberg [Fri, 13 May 2011 17:51:13 +0000 (13:51 -0400)]
view: Set resize handler so fullscreen doesn't crash

13 years agosimple-client: setenv the EGL platform for simple client as well
Kristian Høgsberg [Fri, 13 May 2011 21:07:23 +0000 (17:07 -0400)]
simple-client: setenv the EGL platform for simple client as well

13 years agocompositor: Call wlsc_buffer_attach() after setting es->width
Kristian Høgsberg [Fri, 13 May 2011 18:06:29 +0000 (14:06 -0400)]
compositor: Call wlsc_buffer_attach() after setting es->width

Otherwise we end up with a 0 pitch.

13 years agoconfigure: Only check for XCB if x11 compositor is enabled
Kristian Høgsberg [Wed, 11 May 2011 17:46:29 +0000 (13:46 -0400)]
configure: Only check for XCB if x11 compositor is enabled

13 years agocompositor: Set EGL_PLATFORM env variable for each backend.
Egbert Eich [Tue, 10 May 2011 20:00:19 +0000 (20:00 +0000)]
compositor: Set EGL_PLATFORM env variable for each backend.

I may have missed something, but - since the Wayland compositor
already picks a platform backend, opens a connection and initializes the
backend specific display data structure it doesn't make sense
to let egl pick a platform. If it picks a different one the
display specific data structure will most likely not match.
Thus determine the platform in the Wayland rendering backend by setting
the EGL_PLATFORM env variable.
For the client any other platform than 'wayland' doesn't seem to make
sense.
I'm not sure if I've got the the platform ofr openfwd right.

Signed-off-by: Egbert Eich <eich@freedesktop.org>
13 years agomeego-tablet-compositor: Only ask for lockscreen after we get homescreen
Kristian Høgsberg [Mon, 9 May 2011 01:28:45 +0000 (21:28 -0400)]
meego-tablet-compositor: Only ask for lockscreen after we get homescreen

This way we don't fade up until the lockscreen is showing.

13 years agocompositor: Fix warning in load_module
Benjamin Franzke [Fri, 6 May 2011 21:19:22 +0000 (23:19 +0200)]
compositor: Fix warning in load_module

13 years agocompositor-openwfd: Update to tty, cursor and cflags changes
Benjamin Franzke [Fri, 6 May 2011 21:16:10 +0000 (23:16 +0200)]
compositor-openwfd: Update to tty, cursor and cflags changes

13 years agoMake use of wl_resource.destroy_listener_list for surfaces.
Benjamin Franzke [Fri, 6 May 2011 15:13:17 +0000 (17:13 +0200)]
Make use of wl_resource.destroy_listener_list for surfaces.

13 years agocompositor-drm: Hide hw cursors on vt switch
Kristian Høgsberg [Fri, 6 May 2011 19:38:28 +0000 (15:38 -0400)]
compositor-drm: Hide hw cursors on vt switch

13 years agocompositor-drm: Fix vt switching
Kristian Høgsberg [Fri, 6 May 2011 19:15:37 +0000 (15:15 -0400)]
compositor-drm: Fix vt switching

Don't take input or render while switched away, drop and set master correctly.

13 years agoFix warnings and symbol visibility from missing CFLAGS
Kristian Høgsberg [Fri, 6 May 2011 18:52:41 +0000 (14:52 -0400)]
Fix warnings and symbol visibility from missing CFLAGS

13 years agoMake sure all targets use GCC_CFLAGS
Kristian Høgsberg [Fri, 6 May 2011 18:49:06 +0000 (14:49 -0400)]
Make sure all targets use GCC_CFLAGS

13 years agoconfigure: Remove a xcb-dri2 leftover
Benjamin Franzke [Fri, 6 May 2011 09:10:57 +0000 (11:10 +0200)]
configure: Remove a xcb-dri2 leftover

Fixes compositor and clients trying to link against xcb-dri2.

13 years agocompositor: Disable hw cursor if we're texturing the cursor
Kristian Høgsberg [Fri, 6 May 2011 18:04:21 +0000 (14:04 -0400)]
compositor: Disable hw cursor if we're texturing the cursor

13 years agocompositor: Scanout client buffers even if they're not map_fullscreen
Kristian Høgsberg [Fri, 6 May 2011 18:03:12 +0000 (14:03 -0400)]
compositor: Scanout client buffers even if they're not map_fullscreen

13 years agocompositor-drm: Use EGL_DRM_BUFFER_USE_CURSOR_MESA
Kristian Høgsberg [Fri, 6 May 2011 17:23:49 +0000 (13:23 -0400)]
compositor-drm: Use EGL_DRM_BUFFER_USE_CURSOR_MESA

13 years agomeego-tablet-shell: Destroy tablet_client resource in destroy request
Kristian Høgsberg [Thu, 5 May 2011 19:30:40 +0000 (15:30 -0400)]
meego-tablet-shell: Destroy tablet_client resource in destroy request

13 years agomeego-tablet-shell: Handle app switcher choices
Kristian Høgsberg [Thu, 5 May 2011 19:25:28 +0000 (15:25 -0400)]
meego-tablet-shell: Handle app switcher choices

13 years agocompositor-openwfd: Fixup backend split
Benjamin Franzke [Wed, 4 May 2011 19:19:43 +0000 (21:19 +0200)]
compositor-openwfd: Fixup backend split

13 years agomeego-tablet-shell: Rename tablet_client.poke to activate and add a destructor
Kristian Høgsberg [Wed, 4 May 2011 20:17:20 +0000 (16:17 -0400)]
meego-tablet-shell: Rename tablet_client.poke to activate and add a destructor

13 years agomeego-tablet-shell: Add requests to let ux-daemon ask for appgrid or panels
Kristian Høgsberg [Wed, 4 May 2011 20:16:43 +0000 (16:16 -0400)]
meego-tablet-shell: Add requests to let ux-daemon ask for appgrid or panels

13 years agocompositor-drm: Fix modularization breakage
Kristian Høgsberg [Wed, 4 May 2011 19:08:04 +0000 (15:08 -0400)]
compositor-drm: Fix modularization breakage

13 years agomeego-tablet-shell: Track the state of the UI explicitly
Kristian Høgsberg [Wed, 4 May 2011 15:35:02 +0000 (11:35 -0400)]
meego-tablet-shell: Track the state of the UI explicitly

13 years agomeego-tablet-shell: Handle meta key with super modifier so we get the release
Kristian Høgsberg [Tue, 3 May 2011 17:11:43 +0000 (13:11 -0400)]
meego-tablet-shell: Handle meta key with super modifier so we get the release

13 years agomeego-tablet-shell: Handle animation surface going away
Kristian Høgsberg [Tue, 3 May 2011 16:41:03 +0000 (12:41 -0400)]
meego-tablet-shell: Handle animation surface going away

13 years agocompositor: Split backends into modules
Kristian Høgsberg [Tue, 3 May 2011 02:09:20 +0000 (22:09 -0400)]
compositor: Split backends into modules

13 years agomeego-tablet-shell: Use KEY_COMPOSE for the menu key
Kristian Høgsberg [Mon, 2 May 2011 19:24:11 +0000 (15:24 -0400)]
meego-tablet-shell: Use KEY_COMPOSE for the menu key

This is what the Windows menu key maps to in evdev keycodes.

13 years agocompositor: Rename tweener to spring
Kristian Høgsberg [Mon, 2 May 2011 18:38:18 +0000 (14:38 -0400)]
compositor: Rename tweener to spring

Because it's a spring model, not a tweener.

13 years agocompositor: Group matrix and inverse in struct wlsc_transform
Kristian Høgsberg [Mon, 2 May 2011 18:35:40 +0000 (14:35 -0400)]
compositor: Group matrix and inverse in struct wlsc_transform

13 years agomeego-tablet-shell: Factor out zoom animation
Kristian Høgsberg [Mon, 2 May 2011 18:21:03 +0000 (14:21 -0400)]
meego-tablet-shell: Factor out zoom animation

13 years agomeego-tablet-shell: Match meego-ux-daemon key bindings
Kristian Høgsberg [Mon, 2 May 2011 18:11:15 +0000 (14:11 -0400)]
meego-tablet-shell: Match meego-ux-daemon key bindings

13 years agomeego-tablet-shell: Only clear CLOEXEC flag in child
Kristian Høgsberg [Mon, 2 May 2011 17:57:38 +0000 (13:57 -0400)]
meego-tablet-shell: Only clear CLOEXEC flag in child

13 years agocompositor: Export matrix functions
Kristian Høgsberg [Mon, 2 May 2011 17:53:45 +0000 (13:53 -0400)]
compositor: Export matrix functions

13 years agocompositor: Drop broken opaque repaint optimization for now
Kristian Høgsberg [Mon, 2 May 2011 17:52:00 +0000 (13:52 -0400)]
compositor: Drop broken opaque repaint optimization for now

13 years agocompositor: Remove unused surface matrix, add optional transform
Kristian Høgsberg [Mon, 2 May 2011 17:47:51 +0000 (13:47 -0400)]
compositor: Remove unused surface matrix, add optional transform

13 years agoTweak tweener constants and add friction parameter
Kristian Høgsberg [Mon, 2 May 2011 17:38:03 +0000 (13:38 -0400)]
Tweak tweener constants and add friction parameter

13 years agoconfigure.ac: Just look for png, not png12
Kristian Høgsberg [Mon, 2 May 2011 17:37:47 +0000 (13:37 -0400)]
configure.ac: Just look for png, not png12

13 years agoRemove unused surface->buffer field
Kristian Høgsberg [Mon, 2 May 2011 17:35:17 +0000 (13:35 -0400)]
Remove unused surface->buffer field

If we make sure the link is either on a list or initialized, we can alway
just remove it.

13 years agocompositor-wayland: Fix interface renames (prefix)
Benjamin Franzke [Sat, 30 Apr 2011 08:41:27 +0000 (10:41 +0200)]
compositor-wayland: Fix interface renames (prefix)

13 years agocompositor: Screenhoot into a client provided shm buffer
Kristian Høgsberg [Mon, 2 May 2011 16:11:07 +0000 (12:11 -0400)]
compositor: Screenhoot into a client provided shm buffer

This moves the png writing part to the client and removes the gdk-pixbuf
dependency from the compositor.

13 years agocompositor: Use libpng directly instead of gdb-pixbuf
Kristian Høgsberg [Sat, 23 Apr 2011 19:03:15 +0000 (15:03 -0400)]
compositor: Use libpng directly instead of gdb-pixbuf

13 years agoJust use getopt_long for option parsing
Kristian Høgsberg [Mon, 2 May 2011 14:36:04 +0000 (10:36 -0400)]
Just use getopt_long for option parsing

13 years agocompositor-drm: Retrieve extension functions before wlsc_compositor_init
Benjamin Franzke [Fri, 29 Apr 2011 20:14:54 +0000 (22:14 +0200)]
compositor-drm: Retrieve extension functions before wlsc_compositor_init

wlsc_compositor_init calls pointer_create, which calls
create_cursor which needs EGL_MESA_drm_image functions.

13 years agoAdd some new things to .gitignore
Casey Dahlin [Fri, 29 Apr 2011 06:58:45 +0000 (02:58 -0400)]
Add some new things to .gitignore

libtoytoolkit.a, and generated protocol headers for meego-tablet.

13 years agocompositor-openwfd: Use wfd_device_id as drm fd
Benjamin Franzke [Thu, 28 Apr 2011 19:29:59 +0000 (21:29 +0200)]
compositor-openwfd: Use wfd_device_id as drm fd

owfdrm uses non-0 (0 == WFD_INVALID_DEVICE_ID) fd's as wfd_device_ids.
This is not standardized, but also not invalid.

13 years agocompositor: Fix drm compositor cflags typo
Benjamin Franzke [Thu, 28 Apr 2011 05:21:19 +0000 (07:21 +0200)]
compositor: Fix drm compositor cflags typo

13 years agoAdd --disable-clients configure option
Kristian Høgsberg [Tue, 26 Apr 2011 15:47:00 +0000 (11:47 -0400)]
Add --disable-clients configure option

13 years agocompositor: Recalculate fullscreen surface x,y in surface_attach
Benjamin Franzke [Tue, 26 Apr 2011 13:36:26 +0000 (15:36 +0200)]
compositor: Recalculate fullscreen surface x,y in surface_attach