profile/ivi/weston.git
13 years agoCreate resource for wl_output
Kristian Høgsberg [Mon, 29 Aug 2011 19:03:09 +0000 (15:03 -0400)]
Create resource for wl_output

13 years agosimple-shm: Fix inverted logic
Kristian Høgsberg [Sat, 27 Aug 2011 01:31:33 +0000 (21:31 -0400)]
simple-shm: Fix inverted logic

13 years agoPass resources to functions that take object references
Kristian Høgsberg [Fri, 26 Aug 2011 21:21:20 +0000 (17:21 -0400)]
Pass resources to functions that take object references

13 years agoclients: Remove a few unused variables
Kristian Høgsberg [Wed, 24 Aug 2011 15:32:19 +0000 (11:32 -0400)]
clients: Remove a few unused variables

13 years agoterminal: Fix unused return value warnings
Kristian Høgsberg [Wed, 24 Aug 2011 15:30:21 +0000 (11:30 -0400)]
terminal: Fix unused return value warnings

13 years agowindow.c: Drop global handler argument
Kristian Høgsberg [Wed, 24 Aug 2011 15:09:53 +0000 (11:09 -0400)]
window.c: Drop global handler argument

We can just register a global handler directly on the wl_display now.

13 years agoclients: Bring clients up to date
Kristian Høgsberg [Tue, 23 Aug 2011 22:14:06 +0000 (18:14 -0400)]
clients: Bring clients up to date

13 years agoUse wl_display_bind() for binding to globals
Kristian Høgsberg [Fri, 19 Aug 2011 18:41:57 +0000 (14:41 -0400)]
Use wl_display_bind() for binding to globals

13 years agocompositor: drop wl_display_add_object()
Kristian Høgsberg [Fri, 19 Aug 2011 16:07:44 +0000 (12:07 -0400)]
compositor: drop wl_display_add_object()

13 years agocompositor: Make all exported objects wl_resources
Kristian Høgsberg [Thu, 18 Aug 2011 21:55:30 +0000 (17:55 -0400)]
compositor: Make all exported objects wl_resources

13 years agoUse the new wl_callback interface
Kristian Høgsberg [Wed, 17 Aug 2011 03:01:28 +0000 (23:01 -0400)]
Use the new wl_callback interface

13 years agoUpdate compositor shutdown code
Matt Roper [Mon, 29 Aug 2011 20:52:23 +0000 (13:52 -0700)]
Update compositor shutdown code

Adds a general wlsc_compositor_shutdown() function that all output
backends call when shutting down.  wlsc_compositor_shutdown() will call
a new 'destroy' method of each output to perform backend-specific
cleanup (e.g., turning off the hardware cursor in the DRM compositor).

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
13 years agoTurn off hardware cursors on VT switch before dropping DRM master.
Matt Roper [Sat, 27 Aug 2011 00:36:49 +0000 (17:36 -0700)]
Turn off hardware cursors on VT switch before dropping DRM 

The DRM cursor ioctl requires DRM master.  We shouldn't drop
master until after we're done turning off the hardware cursors
for a VT switch.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
13 years agoevdev: opt out accelerometer type of devices
Tiago Vignatti [Fri, 19 Aug 2011 14:07:40 +0000 (17:07 +0300)]
evdev: opt out accelerometer type of devices

We may want to adjust the protocol later for clients that care for
these devices only, generating a special event.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agocompositor: fix pitch initialization
Tiago Vignatti [Fri, 19 Aug 2011 12:10:40 +0000 (15:10 +0300)]
compositor: fix pitch initialization

texture_region was getting a trash value for computing.  I don't
understand how we couldn't see any artifact on surface output in such
case.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agoevdev: use a separate function for configuring devices
Tiago Vignatti [Fri, 19 Aug 2011 12:06:20 +0000 (15:06 +0300)]
evdev: use a separate function for configuring devices

No semantical changes.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agocompositor-drm: Fix compilation error caused by typo.
Ander Conselvan de Oliveira [Wed, 17 Aug 2011 11:50:17 +0000 (14:50 +0300)]
compositor-drm: Fix compilation error caused by typo.

13 years agocompositor-drm: Make unused parts of the cursor image transparent
Ander Conselvan de Oliveira [Tue, 16 Aug 2011 11:25:15 +0000 (14:25 +0300)]
compositor-drm: Make unused parts of the cursor image transparent

The bo for the cursor image is always created with size 64x64 even if
the actual cursor image is smaller than that. If this memory is not
initialized, random data can create artifacts near the cursor.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
13 years agoDon't discard key press / key release events if the keys are different
Dima Ryazanov [Wed, 17 Aug 2011 00:25:32 +0000 (17:25 -0700)]
Don't discard key press / key release events if the keys are different

Keystrokes get dropped if the user types too quickly.

13 years agoDon't pass NULL pointer as user data to signal handler
Kristian Høgsberg [Fri, 12 Aug 2011 18:55:07 +0000 (14:55 -0400)]
Don't pass NULL pointer as user data to signal handler

13 years agoRelative movement with a touchpad and other misc fixes for events
Matt Peterson [Mon, 1 Aug 2011 19:46:29 +0000 (13:46 -0600)]
Relative movement with a touchpad and other misc fixes for events

13 years agocompositor-drm: Ignore disconnected connectors width
Benjamin Franzke [Tue, 2 Aug 2011 11:03:54 +0000 (13:03 +0200)]
compositor-drm: Ignore disconnected connectors width

- Fixes segfault, if first enumerated connector is not connected.
- Corrects x-offset where e.g. the 2. of 3 connectors is not connected.
  (where width of 1. output would have taken twice as
   offset for output at 3. connector)

13 years agoxserver: Shut down if X server is crashing too fast
Kristian Høgsberg [Thu, 11 Aug 2011 22:59:35 +0000 (18:59 -0400)]
xserver: Shut down if X server is crashing too fast

13 years agoxserver: Clean up wm on X server exit
Kristian Høgsberg [Thu, 11 Aug 2011 21:58:59 +0000 (17:58 -0400)]
xserver: Clean up wm on X server exit

13 years agoxserver: Clean up lockfile creation a bit
Kristian Høgsberg [Thu, 11 Aug 2011 21:48:38 +0000 (17:48 -0400)]
xserver: Clean up lockfile creation a bit

13 years agoxserver: Listen on abstract X socket too
Kristian Høgsberg [Thu, 11 Aug 2011 21:27:56 +0000 (17:27 -0400)]
xserver: Listen on abstract X socket too

And try the next display if binding fails.

13 years agocompositor: Move signal handler initialization before module loading
Tiago Vignatti [Mon, 8 Aug 2011 12:52:59 +0000 (05:52 -0700)]
compositor: Move signal handler initialization before module loading

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agoconfigure: add helper for setting xserver directory
Tiago Vignatti [Wed, 3 Aug 2011 09:12:31 +0000 (12:12 +0300)]
configure: add helper for setting xserver directory

With this the X server directory can become independent from the
installation prefix set by autoconf.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agoxserver: Print atom names
Kristian Høgsberg [Wed, 27 Jul 2011 12:59:19 +0000 (05:59 -0700)]
xserver: Print atom names

13 years agoscreenshot: A couple of minor tweaks
Kristian Høgsberg [Wed, 27 Jul 2011 12:58:57 +0000 (05:58 -0700)]
screenshot: A couple of minor tweaks

13 years agoscreenshot: use gdk-pixbuf for writing png images
Tiago Vignatti [Tue, 26 Jul 2011 08:42:59 +0000 (11:42 +0300)]
screenshot: use gdk-pixbuf for writing png images

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agotty: Use /dev/tty instead of tty0
Kristian Høgsberg [Fri, 22 Jul 2011 14:25:21 +0000 (07:25 -0700)]
tty: Use /dev/tty instead of tty0

13 years agocompositor: Only configure surface when it changes geometry
Kristian Høgsberg [Thu, 21 Jul 2011 18:33:47 +0000 (11:33 -0700)]
compositor: Only configure surface when it changes geometry

13 years agocompositor: Pick output for surface based on amount of overlap
Kristian Høgsberg [Thu, 21 Jul 2011 18:30:22 +0000 (11:30 -0700)]
compositor: Pick output for surface based on amount of overlap

13 years agocompositor-openwfd: Update to systemd seat input devices
Benjamin Franzke [Thu, 21 Jul 2011 10:45:03 +0000 (10:45 +0000)]
compositor-openwfd: Update to systemd seat input devices

13 years agocompositor-x11: Support multiple outputs
Kristian Høgsberg [Thu, 21 Jul 2011 17:22:13 +0000 (10:22 -0700)]
compositor-x11: Support multiple outputs

13 years agoxserver: Ignore requests from X servers we didn't launch
Kristian Høgsberg [Thu, 21 Jul 2011 16:48:09 +0000 (09:48 -0700)]
xserver: Ignore requests from X servers we didn't launch

13 years agoclients: Rename simple-client to simple-egl
Kristian Høgsberg [Thu, 21 Jul 2011 15:41:24 +0000 (08:41 -0700)]
clients: Rename simple-client to simple-egl

13 years agoconfigure: set up simple clients independently from the others
Tiago Vignatti [Thu, 21 Jul 2011 13:35:40 +0000 (16:35 +0300)]
configure: set up simple clients independently from the others

Namely, simple-client and simple-shm.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agoclients: simple-shm: remove unused libraries and headers
Tiago Vignatti [Thu, 21 Jul 2011 13:35:39 +0000 (16:35 +0300)]
clients: simple-shm: remove unused libraries and headers

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agosimple-shm: assert display conection
Tiago Vignatti [Thu, 21 Jul 2011 13:35:38 +0000 (16:35 +0300)]
simple-shm: assert display conection

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years agoevdev: Only add event devices
Kristian Høgsberg [Thu, 21 Jul 2011 13:46:26 +0000 (06:46 -0700)]
evdev: Only add event devices

13 years agoxserver: use $bindir prefix when launching X
Kristian Høgsberg [Thu, 21 Jul 2011 13:46:05 +0000 (06:46 -0700)]
xserver: use $bindir prefix when launching X

13 years agoxserver: Memset the right size
Kristian Høgsberg [Thu, 21 Jul 2011 01:15:50 +0000 (18:15 -0700)]
xserver: Memset the right size

13 years agoxserver: Only launch wm for xservers we launch
Kristian Høgsberg [Thu, 21 Jul 2011 01:15:27 +0000 (18:15 -0700)]
xserver: Only launch wm for xservers we launch

13 years agocompositor: Use systemd seats for input devices as well
Kristian Høgsberg [Tue, 19 Jul 2011 23:10:11 +0000 (16:10 -0700)]
compositor: Use systemd seats for input devices as well

13 years agocompositor: Use systemd seat configuration conventions
Kristian Høgsberg [Sat, 16 Jul 2011 01:28:38 +0000 (21:28 -0400)]
compositor: Use systemd seat configuration conventions

http://www.freedesktop.org/wiki/Software/systemd/multiseat

13 years agoxserver: Clean up X server socket on exit
Kristian Høgsberg [Sat, 16 Jul 2011 01:09:24 +0000 (21:09 -0400)]
xserver: Clean up X server socket on exit

13 years agoxserver: Detect an clean up stale lock file
Kristian Høgsberg [Sat, 16 Jul 2011 00:14:57 +0000 (20:14 -0400)]
xserver: Detect an clean up stale lock file

13 years agoxserver: Create per-display log file
Kristian Høgsberg [Sat, 16 Jul 2011 00:14:00 +0000 (20:14 -0400)]
xserver: Create per-display log file

13 years agocompositor-drm: Drop cursor debug message
Kristian Høgsberg [Fri, 15 Jul 2011 21:26:34 +0000 (17:26 -0400)]
compositor-drm: Drop cursor debug message

13 years agowindow.c: Fix compile/run using cairo without egl
Benjamin Franzke [Sat, 16 Jul 2011 19:50:32 +0000 (19:50 +0000)]
window.c: Fix compile/run using cairo without egl

13 years agoclients: Add a simple shared memory client
Kristian Høgsberg [Wed, 6 Jul 2011 15:58:45 +0000 (11:58 -0400)]
clients: Add a simple shared memory client

13 years agocompositor: Fix damage tracking for multi-head compositors
Kristian Høgsberg [Sat, 2 Jul 2011 02:12:11 +0000 (22:12 -0400)]
compositor: Fix damage tracking for multi-head compositors

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