profile/ivi/weston.git
11 years agoWait for existence of wayland socket before changing its permissions. accepted/2.0alpha-wayland/20130206.225418 submit/2.0alpha-wayland/20130206.231101
Ossama Othman [Wed, 6 Feb 2013 23:07:12 +0000 (15:07 -0800)]
Wait for existence of wayland socket before changing its permissions.

Change-Id: If0128ac1b1ec533d7112692f5ce1a35da3099392
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoTighten up permissions on Weston run-time dir.
Ossama Othman [Wed, 6 Feb 2013 23:05:00 +0000 (15:05 -0800)]
Tighten up permissions on Weston run-time dir.

Change-Id: Ief1afb71efcad7df12897d8797f8017e8c1a9df4
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUpdated packaging change log. accepted/2.0alpha-wayland/20130130.195929 submit/2.0alpha-wayland/20130130.070416
Ossama Othman [Wed, 30 Jan 2013 07:00:03 +0000 (23:00 -0800)]
Updated packaging change log.

Change-Id: I5d1e0ec048a57eabf5e40d52fbd6da8352db876e
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUse Wayland EGL as ELM and e-core evas engine, not Wayland SHM. 07/2707/1
Ossama Othman [Wed, 30 Jan 2013 00:07:11 +0000 (16:07 -0800)]
Use Wayland EGL as ELM and e-core evas engine, not Wayland SHM.

Change-Id: Ia28a7473c1c441fd96c91f9f38dd3e651de08490
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoWork around insufficient access permissions for unprivileged users. 04/2704/1 accepted/2.0alpha-wayland/20130126.004737 submit/2.0alpha-wayland/20130126.011305
Ossama Othman [Sat, 26 Jan 2013 00:55:11 +0000 (16:55 -0800)]
Work around insufficient access permissions for unprivileged users.

Change-Id: I35f6693316cbd5b68c4695607210b25aa087bca4
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoEnable Weston to start at boot. 99/2699/1
Ossama Othman [Fri, 25 Jan 2013 00:27:17 +0000 (16:27 -0800)]
Enable Weston to start at boot.

Change-Id: I87f849b1ef510edea4f6cf81a34dc8a72faedd89
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUpdate packaging to 1.0.2 submit/2.0alpha-wayland/20121206.190105
Rob Bradford [Thu, 6 Dec 2012 18:59:11 +0000 (18:59 +0000)]
Update packaging to 1.0.2

11 years agoDisable weston-launch (requires pam which we don't have)
Rob Bradford [Thu, 15 Nov 2012 17:38:11 +0000 (17:38 +0000)]
Disable weston-launch (requires pam which we don't have)

11 years agoDisable vpx support
Rob Bradford [Thu, 15 Nov 2012 17:33:45 +0000 (17:33 +0000)]
Disable vpx support

11 years agoUpdate to 1.0.0 packaging
Rob Bradford [Thu, 15 Nov 2012 17:29:32 +0000 (17:29 +0000)]
Update to 1.0.0 packaging

11 years agoRelease mechanics for TIVI-107 udev rules
Rob Bradford [Tue, 18 Sep 2012 17:36:38 +0000 (18:36 +0100)]
Release mechanics for TIVI-107 udev rules

11 years agopackaging: Add udev rule to quirk the touchscreen on VTC1000
Rob Bradford [Tue, 18 Sep 2012 16:51:15 +0000 (17:51 +0100)]
packaging: Add udev rule to quirk the touchscreen on VTC1000

11 years agoRelease to include changes needed for TIVI-107
Rob Bradford [Tue, 18 Sep 2012 15:50:20 +0000 (16:50 +0100)]
Release to include changes needed for TIVI-107

11 years agocompositor-drm: Add quirk loading from udev
Rob Bradford [Mon, 17 Sep 2012 17:07:00 +0000 (18:07 +0100)]
compositor-drm: Add quirk loading from udev

Look at udev properties and then set the quirk flags based on the udev
properties that are set on the device node.

11 years agoevdev: Add support for device quirks and implement axes swapping
Rob Bradford [Mon, 17 Sep 2012 17:02:22 +0000 (18:02 +0100)]
evdev: Add support for device quirks and implement axes swapping

This quirk is designed for hardware that has the X and Y axes swapped for
absolute events.

11 years agoupdate the changelog
Rusty Lynch [Mon, 17 Sep 2012 23:49:30 +0000 (16:49 -0700)]
update the changelog

11 years agoAdd HOME to the list of env varialbes set in the systemd config
Rusty Lynch [Mon, 17 Sep 2012 23:47:41 +0000 (16:47 -0700)]
Add HOME to the list of env varialbes set in the systemd config

11 years agoIntroduce patch to fix TIVI-191
Rob Bradford [Fri, 14 Sep 2012 22:10:02 +0000 (23:10 +0100)]
Introduce patch to fix TIVI-191

11 years agocompositor-drm: Don't try and scan out a SHM buffer directly
Rob Bradford [Fri, 14 Sep 2012 22:02:47 +0000 (23:02 +0100)]
compositor-drm: Don't try and scan out a SHM buffer directly

gbm_bo_import will fail to produce a valid bo since the buffer is an SHM
buffer. This cause a crash when the NULL bo returned by gbm_bo_import is
dereferenced later.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
11 years agoAdd manpage to spec file
Rob Bradford [Thu, 13 Sep 2012 17:55:25 +0000 (18:55 +0100)]
Add manpage to spec file

11 years agoUpdate snapshot
Rob Bradford [Thu, 13 Sep 2012 17:46:00 +0000 (18:46 +0100)]
Update snapshot

11 years agoUpdate to force rebuild
Rob Bradford [Thu, 16 Aug 2012 17:22:22 +0000 (18:22 +0100)]
Update to force rebuild

11 years agoUpdate snapshot
Rob Bradford [Thu, 16 Aug 2012 08:56:48 +0000 (09:56 +0100)]
Update snapshot

11 years agoAdd new installed file - weston-info
Rob Bradford [Thu, 16 Aug 2012 08:56:33 +0000 (09:56 +0100)]
Add new installed file - weston-info

11 years agoUpdate snapshot
Rob Bradford [Thu, 16 Aug 2012 08:47:38 +0000 (09:47 +0100)]
Update snapshot

11 years agoRemove file from .spec
Rob Bradford [Thu, 16 Aug 2012 08:45:42 +0000 (09:45 +0100)]
Remove file from .spec

11 years agoUpdate snapshot
Rob Bradford [Thu, 16 Aug 2012 08:39:09 +0000 (09:39 +0100)]
Update snapshot

11 years agoDisable xwayland
Rob Bradford [Tue, 14 Aug 2012 17:30:10 +0000 (18:30 +0100)]
Disable xwayland

11 years agoBump .changes and spec for update
Rob Bradford [Tue, 14 Aug 2012 15:51:32 +0000 (16:51 +0100)]
Bump .changes and spec for update

11 years agoFix some lint errors in the spec file
Rob Bradford [Tue, 14 Aug 2012 15:53:51 +0000 (16:53 +0100)]
Fix some lint errors in the spec file

11 years agobuild: Disable the X11 compositor
Rob Bradford [Mon, 13 Aug 2012 13:43:04 +0000 (14:43 +0100)]
build: Disable the X11 compositor

Fixes: https://bugs.tizen.org/jira/browse/TIVI-76

11 years agoUpdate changelog and bump version
Rob Bradford [Fri, 3 Aug 2012 15:23:12 +0000 (16:23 +0100)]
Update changelog and bump version

11 years agodelete weston-mode patch from packaging dir
Wang Quanxian [Tue, 24 Jul 2012 02:19:43 +0000 (10:19 +0800)]
delete weston-mode patch from packaging dir

Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>

11 years agoAdd PATH to weston.service
Rusty Lynch [Wed, 11 Jul 2012 22:23:04 +0000 (15:23 -0700)]
Add PATH to weston.service

11 years agoUse SHM backend for Ecore & Elementary
Rob Bradford [Mon, 9 Jul 2012 17:34:59 +0000 (18:34 +0100)]
Use SHM backend for Ecore & Elementary

11 years agoUpdate changelog & spec version
Rob Bradford [Mon, 9 Jul 2012 10:49:12 +0000 (11:49 +0100)]
Update changelog & spec version

11 years agoTIZEN: Add logging to the weston.service file to facilitate debugging
Rob Bradford [Mon, 9 Jul 2012 10:45:41 +0000 (11:45 +0100)]
TIZEN: Add logging to the weston.service file to facilitate debugging

11 years agoBug fix CrownBay resolution issue
Wang Quanxian [Fri, 6 Jul 2012 11:25:50 +0000 (19:25 +0800)]
Bug fix CrownBay resolution issue

  Use the first mode as preferred mode in weston

Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>

11 years agoAdd default mode for NexCom and Crossiville
Wang Quanxian [Fri, 6 Jul 2012 09:04:27 +0000 (17:04 +0800)]
Add default mode for NexCom and Crossiville

The platform has no EDID information. The mode could not be gotten
from emgd driver interfaces.

Signed-Off-By Wang Quanxian <quanxian.wang@intel.com>

11 years agoUpdate to latest snapshot
Rob Bradford [Wed, 4 Jul 2012 11:37:39 +0000 (12:37 +0100)]
Update to latest snapshot

11 years agoUpdate .changes
Graydon, Tracy [Mon, 2 Jul 2012 17:59:18 +0000 (10:59 -0700)]
Update .changes

11 years agoupdate service untis to be installed in /usr/lib vs /lib
Chris E Ferron [Mon, 2 Jul 2012 17:55:19 +0000 (10:55 -0700)]
update service untis to be installed in /usr/lib vs /lib

11 years agoRemove the --with-cairo-glesv2 argument since we do not build cairo with gl or gles...
Rusty Lynch [Thu, 21 Jun 2012 17:51:54 +0000 (10:51 -0700)]
Remove the --with-cairo-glesv2 argument since we do not build cairo with gl or gles support

11 years agoAdd packaging files for Tizen
Rusty Lynch [Wed, 13 Jun 2012 00:26:06 +0000 (17:26 -0700)]
Add packaging files for Tizen

11 years agoconfigure.ac: Bump version to 1.0.2
Kristian Høgsberg [Fri, 30 Nov 2012 21:18:36 +0000 (16:18 -0500)]
configure.ac: Bump version to 1.0.2

11 years agocompositor-drm: Allow scanning out of opaque ARGB surfaces
Ander Conselvan de Oliveira [Fri, 30 Nov 2012 15:34:22 +0000 (17:34 +0200)]
compositor-drm: Allow scanning out of opaque ARGB surfaces

11 years agoFix build warnings from image_loader
Pekka Paalanen [Fri, 30 Nov 2012 11:37:28 +0000 (13:37 +0200)]
Fix build warnings from image_loader

Fix the following build warnings, and the build failures due to the
warning fixes:

  CC     libshared_cairo_la-image-loader.lo
image-loader.c:369:1: warning: no previous prototype for 'load_image'

  CC     x11_backend_la-compositor-x11.lo
compositor-x11.c: In function 'x11_output_set_icon':
compositor-x11.c:396:2: warning: implicit declaration of function 'load_image'
compositor-x11.c:396:8: warning: assignment makes pointer from integer without a cast

  CC     wayland_backend_la-compositor-wayland.lo
compositor-wayland.c: In function 'create_border':
compositor-wayland.c:97:2: warning: implicit declaration of function 'load_image'
compositor-wayland.c:97:8: warning: assignment makes pointer from integer without a cast

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Conflicts:
src/compositor-wayland.c

11 years agoFix a crash when opening two terminal windows and closing the first one.
Dima Ryazanov [Thu, 29 Nov 2012 08:27:09 +0000 (00:27 -0800)]
Fix a crash when opening two terminal windows and closing the first one.

To reproduce, launch the terminal, open a second window using Ctrl-Shift-N,
go back to the first window, and press Ctrl-D. The terminal's master FD gets
events even after being closed, causing terminal_destroy to be called twice
on the same object.

To fix this, I'm adding a function to stop watching an FD.

11 years agocompositor-x11: Link to libshared-cairo for icon loading helper
Kristian Høgsberg [Thu, 29 Nov 2012 22:00:33 +0000 (17:00 -0500)]
compositor-x11: Link to libshared-cairo for icon loading helper

The X11 backend needs the image loader helper to load the window
icon.

11 years agoconfigure.ac: Don't link weston to cairo or image libraries
Kristian Høgsberg [Thu, 29 Nov 2012 17:23:36 +0000 (12:23 -0500)]
configure.ac: Don't link weston to cairo or image libraries

We were pulling in cairo and the image loading libraries through libshared.
Split out libshared into a core libshared and a libshared-cairo that
pulls in the extra libraries.

11 years agoweston.ini: Introduce core section and remove type keys.
Scott Moreau [Tue, 27 Nov 2012 23:54:53 +0000 (16:54 -0700)]
weston.ini: Introduce core section and remove type keys.

Since a6813d288, there is no longer a "type" key in the [shell] config section.
Instead the code accepts a [core] section with a modules key, containing a
comma separated list of modules to load. This patch removes the type keys
and adds a core section in the example weston.ini config file.

11 years agocompositor: Move clearing of primary plane damage to the backends
Ander Conselvan de Oliveira [Thu, 22 Nov 2012 13:57:00 +0000 (15:57 +0200)]
compositor: Move clearing of primary plane damage to the backends

Backends may move surfaces to different planes, in which case damage is
generated in the primary plane. This damage is usually passed to the
renderer, but in some cases the backend may decide to not render
anything (that's the case when drm compositor scans out a client
buffer). In that case the damage on the primary plane would be
discarded, leading to artifacts later.

This patch makes the backend's responsibility to clear the damage on
the primary plane, so that unrendered damage is kept for as long as
necessary.

11 years agoman: fill missing pieces to weston page
Pekka Paalanen [Tue, 27 Nov 2012 14:54:09 +0000 (16:54 +0200)]
man: fill missing pieces to weston page

Config file, WAYLAND_SOCKET, XDG_CONFIG_HOME, segfault handler.

NOTE: This is a candidate for the stable branch
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
11 years agoman: add weston-drm page
Pekka Paalanen [Tue, 27 Nov 2012 14:54:08 +0000 (16:54 +0200)]
man: add weston-drm page

Add some documentation about the DRM backend into its own man page, and
refer to it in weston(1).

Environment variable, that are reserved for backends, and currently used
only by the DRM backend, are moved to weston-drm page.

NOTE: This is a candidate for the stable branch
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
11 years agoxwm: Fix xwm opaque region
Scott Moreau [Thu, 22 Nov 2012 22:35:13 +0000 (15:35 -0700)]
xwm: Fix xwm opaque region

Since surface.commit was introduced, opqaue regions are stored in a pending
variable that isn't used until surface.commit. Xwayland uses the surface opaque
region as a way to tell weston what region of the surface should be opaque.
However when this pending opaque region was introduced, xwm was not updated
and so we have the 'black = transparent' problem again. This patch fixes the
problem by having xwm use the pending opaque regions.

11 years agoconfigure.ac: Bump version to 1.0.1
Kristian Høgsberg [Tue, 20 Nov 2012 03:13:51 +0000 (22:13 -0500)]
configure.ac: Bump version to 1.0.1

11 years agosimple-egl: Reset opaque region if not fullscreen.
Scott Moreau [Mon, 19 Nov 2012 21:17:52 +0000 (14:17 -0700)]
simple-egl: Reset opaque region if not fullscreen.

If simple-egl is toggled fullscreen, the opqaue region is set for the surface
but never removed after exiting fullscreen. This patch resets the opaque region
to 0 if the surface is not fullscreen and -o was not passed. This fixes the
problem introduced sometime since d7f282b84e, when this was last fixed.

11 years agosimple-egl: Set the right size for the opaque region when fullscreen
Ander Conselvan de Oliveira [Fri, 7 Sep 2012 14:32:16 +0000 (17:32 +0300)]
simple-egl: Set the right size for the opaque region when fullscreen

window.window_size holds the size of the window in windowed mode. Use
window.geometry for setting the opaque region since that holds the
current size.

11 years agoshell/zoom: Increment/decrement disable_planes only when zoom.active changes
Ville Syrjälä [Fri, 16 Nov 2012 09:48:47 +0000 (11:48 +0200)]
shell/zoom: Increment/decrement disable_planes only when zoom.active changes

disable_planes should only be incremented when zoom.active actually
toggles. Otherwise the counter will be incremented too many times,
and planes will no longer get used.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
11 years agocompositor-drm: Don't use overlay when surface alpha != 1.0f
Ville Syrjälä [Fri, 16 Nov 2012 09:48:46 +0000 (11:48 +0200)]
compositor-drm: Don't use overlay when surface alpha != 1.0f

Assume that overlays can't handle alpha blending even with a constant
alpha factor.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
11 years agowcap: Transform damage rectangles according to output tranform
Kristian Høgsberg [Thu, 15 Nov 2012 01:28:30 +0000 (20:28 -0500)]
wcap: Transform damage rectangles according to output tranform

https://bugs.freedesktop.org/show_bug.cgi?id=56697

11 years agotests: Remove last GLfloat use
Kristian Høgsberg [Wed, 14 Nov 2012 19:42:51 +0000 (14:42 -0500)]
tests: Remove last GLfloat use

With the EGL/GLES2 types out of compositor.h this now fails to compile.

https://bugs.freedesktop.org/show_bug.cgi?id=57129

11 years agoFix a typo.
Dima Ryazanov [Sun, 11 Nov 2012 08:29:01 +0000 (00:29 -0800)]
Fix a typo.

11 years agoTerminal: Handle keypad symbols
Daniel Stone [Wed, 7 Nov 2012 06:51:35 +0000 (17:51 +1100)]
Terminal: Handle keypad symbols

XKB provides keypad symbols in a separate namespace.  We don't care
about the distinction, so map them to normal symbols before starting
processing.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agosmoke: Remove unused offset member
Daniel Stone [Wed, 7 Nov 2012 06:51:36 +0000 (17:51 +1100)]
smoke: Remove unused offset member

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agoshell: Do not insert input panel layer when locked
Jan Arne Petersen [Wed, 7 Nov 2012 14:32:54 +0000 (15:32 +0100)]
shell: Do not insert input panel layer when locked

Do not try to insert the input panel layer in the layer list when the
shell is locked in show_input_panels(). The layer will already be
insrted in resume_desktop() anyways.

https://bugs.freedesktop.org/show_bug.cgi?id=56543

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
11 years agocompositor: Use pixman_region32_intersect_rect() instead of temp region
Kristian Høgsberg [Thu, 8 Nov 2012 16:36:02 +0000 (11:36 -0500)]
compositor: Use pixman_region32_intersect_rect() instead of temp region

We avoid reusing 'opaque' and don't leak the region.

11 years agoReset pending surface delta x and y on commit
Daniel Stone [Wed, 7 Nov 2012 06:51:44 +0000 (17:51 +1100)]
Reset pending surface delta x and y on commit

The following sequence:
wl_surface::attach(s, b, 1, 2)
wl_surface::commit(s)
wl_surface::commit(s)
would actually result in the surface getting moved by (2,4) as the
pending attach delta wasn't reset on commit, only by another attach.

This only shows up on single-buffered surfaces.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agoClip surface damage to the surface area
Daniel Stone [Wed, 7 Nov 2012 06:51:43 +0000 (17:51 +1100)]
Clip surface damage to the surface area

Otherwise glTexSubImage2D will reject our co-ordinates as being out of
bounds.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agoSHM: Don't flush damage when there is none
Daniel Stone [Wed, 7 Nov 2012 06:51:42 +0000 (17:51 +1100)]
SHM: Don't flush damage when there is none

Every single frame, we were calling the flush_damage handler in the
renderer.  For GLES2 with subimage, this wasn't too bad as we'd never
call glTexSubImage2D, but without it, we'd upload the entire frame
through glTexImage2D every time.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agoClients: Don't set the cursor when we have no pointer
Daniel Stone [Wed, 7 Nov 2012 06:51:39 +0000 (17:51 +1100)]
Clients: Don't set the cursor when we have no pointer

Avoids a segfault whenever we get a key event, and try to set the
cursor, dereferencing a NULL input->pointer.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agowindow.c: Move misplaced break to where it belongs
Kristian Høgsberg [Tue, 6 Nov 2012 01:20:53 +0000 (20:20 -0500)]
window.c: Move misplaced break to where it belongs

The break statement wasn't copy and pasted along with the rest of the code
causing menu item before it ("Move to workspace below") to fall through to
the fullscreen case.

11 years agocompositor-drm: Always disable sprites for now
Kristian Høgsberg [Fri, 2 Nov 2012 14:14:40 +0000 (10:14 -0400)]
compositor-drm: Always disable sprites for now

Until the nuclear pageflip work lands in KMS, we can't use sprites
reliably.

11 years agocompositor-x11: verify that detectable repeat was really set
Ran Benita [Wed, 31 Oct 2012 18:14:58 +0000 (20:14 +0200)]
compositor-x11: verify that detectable repeat was really set

Since the XKB says that support for detectable repeat is in fact
optional:
http://www.x.org/releases/current/doc/kbproto/xkbproto.html#Querying_and_Changing_Per_Client_Flags
we might as well be good citizens and check that it was really set. With
the X server this would never happen, though.

Signed-off-by: Ran Benita <ran234@gmail.com>
11 years agocompositor-x11: properly initialize XKB extension
Ran Benita [Wed, 31 Oct 2012 18:14:57 +0000 (20:14 +0200)]
compositor-x11: properly initialize XKB extension

In order to use XKB capabilities (as we do), the client must issue an
XkbUseExtension request:
http://www.x.org/releases/current/doc/kbproto/xkbproto.html#Initializing_the_X_Keyboard_Extension

The reason this succeeds currently is that XOpenDisplay from Xlib does
this for us. But it is better not to rely on that, but do it explicitly
in XCB with the rest of the XKB init sequence.

Signed-off-by: Ran Benita <ran234@gmail.com>
11 years agocompositor-x11: free or discard XCB generic_error's
Ran Benita [Wed, 31 Oct 2012 18:14:56 +0000 (20:14 +0200)]
compositor-x11: free or discard XCB generic_error's

Where we don't look at the error details, pass NULL to the 'error'
argument and test using the reply return value instead.
Where we do need it, remember to free it.

Signed-off-by: Ran Benita <ran234@gmail.com>
11 years agocompositor-drm: Add key binding for hidding overlays
Ander Conselvan de Oliveira [Wed, 31 Oct 2012 15:55:46 +0000 (17:55 +0200)]
compositor-drm: Add key binding for hidding overlays

Pressing ctrl-alt-o will cause the overlays to be hidden, but surfaces
will still be assigned to different planes. This helps with debugging
of repaint culling below surfaces in other planes.

11 years agocompositor: Fix culling of repaints behind opaque surfaces
Ander Conselvan de Oliveira [Wed, 31 Oct 2012 15:55:45 +0000 (17:55 +0200)]
compositor: Fix culling of repaints behind opaque surfaces

Culling of the repaint of a surface behind an opaque surface on the
same plane was broken by commit 547149a9 [1]. The idea of that commit
is that the damage obscured by an overlay would remain on the primary
plane damage and be repainted when the overlay moved. However, in the
case the two surfaces are on the same plane, the opaque one is not
obscured, so it ends up being repainted.

This commit adds an opaque field to struct weston_plane, that is built
incrementally when accumulating damage. The opaque region of surfaces
on the same plane are removed from the plane's damage, restoring the
previous culling behavior. But since damage behind opaque region of
other planes is maintained, the bug solved in the mentioned commit is
not regressed.

https://bugs.freedesktop.org/show_bug.cgi?id=56537

11 years agocompositor-x11: use _checked() with xkb_select_events to test for error
Ran Benita [Tue, 30 Oct 2012 22:13:08 +0000 (00:13 +0200)]
compositor-x11: use _checked() with xkb_select_events to test for error

In order to use xcb_request_check(), given a request without a reply,
you need to use the _checked() variant of the request function.
See xcb-requests(3).

Signed-off-by: Ran Benita <ran234@gmail.com>
11 years agowindow: Fix use-after-free in menu button handler
Kristian Høgsberg [Tue, 30 Oct 2012 22:10:30 +0000 (18:10 -0400)]
window: Fix use-after-free in menu button handler

Commit d2fbb3870cfaea623a87ba28c9587676bbdc93f7 introduced a use-after-free
error in the case where we destroy the menu.

11 years agowindow: Only advertise fullscreen menu item if client supports it
Kristian Høgsberg [Tue, 30 Oct 2012 22:07:02 +0000 (18:07 -0400)]
window: Only advertise fullscreen menu item if client supports it

If the client doesn't set a fullscreen handler, we can't go fullscreen
and shouldn't advertise that in the window menu.  The menu implementation is
a little simplistic, so we just move the "Fullscreen" entry to the end of
the list and don't count it if we don't want it in the menu.

https://bugs.freedesktop.org/show_bug.cgi?id=47751
https://bugs.freedesktop.org/show_bug.cgi?id=48106

11 years agoimage: Set dragging pointer on button press, not first motion
Kristian Høgsberg [Tue, 30 Oct 2012 19:50:37 +0000 (15:50 -0400)]
image: Set dragging pointer on button press, not first motion

We want feedback that we're starting to drag when we press the button
not when we later start dragging the image.

11 years agoimage: Combine clamp_view() and center_view ()
Kristian Høgsberg [Tue, 30 Oct 2012 19:46:25 +0000 (15:46 -0400)]
image: Combine clamp_view() and center_view ()

We need to clamp or center on a per axis basis.  If the window is wider
but the image is taller, we need to center horizontally but
clamp vertically.  We can only do that if by combining the two
functions.

11 years agoimage: Add keyhandler to handle keyboard zoom
Kristian Høgsberg [Tue, 30 Oct 2012 19:42:20 +0000 (15:42 -0400)]
image: Add keyhandler to handle keyboard zoom

11 years agoimage: Set resize handler and center view on resize/fullscreen
Kristian Høgsberg [Tue, 30 Oct 2012 19:09:49 +0000 (15:09 -0400)]
image: Set resize handler and center view on resize/fullscreen

11 years agotoytoolkit: Don't destroy window cairo surface on shm attach.
Scott Moreau [Tue, 30 Oct 2012 18:12:12 +0000 (12:12 -0600)]
toytoolkit: Don't destroy window cairo surface on shm attach.

https://bugs.freedesktop.org/show_bug.cgi?id=52454

11 years agoshell: End popups if we trigger a shell grab
Kristian Høgsberg [Tue, 30 Oct 2012 18:07:27 +0000 (14:07 -0400)]
shell: End popups if we trigger a shell grab

Clicking outside popups closes them except in case of a shell grab
(move, resize or rotate), in which case we move the parent window away
from under the popup.  Instead, just end the popup in those cases.

https://bugs.freedesktop.org/show_bug.cgi?id=55674

11 years agocompositor: Fix partial repaints
Ander Conselvan de Oliveira [Tue, 30 Oct 2012 15:44:01 +0000 (17:44 +0200)]
compositor: Fix partial repaints

Partial repaints have been broken since the introduction of the atomic
surface updates. The problem was that surface_commit would set the
geometry dirty flag unconditionally, causing transform updates on every
frame which would in turn cause weston_surface_damage_below() to damage
the whole surface area.

This patch changes this so that flag is only set if the pending buffer
has a different size, the location of the surface changed or the opaque
region changed.

Note that changing the opaque region will cause a full repaint of the
affected surface, because of the transform update.

https://bugs.freedesktop.org/show_bug.cgi?id=56538

11 years agowindow: Make press-drag-release menu selection mode work
Kristian Høgsberg [Tue, 30 Oct 2012 17:45:22 +0000 (13:45 -0400)]
window: Make press-drag-release menu selection mode work

The intended behavior is that a quick click (press and then release
within 500ms) just pops up the menu and doesn't select anything.  Then
we can mouse around and and click to select an item.  Alternatively, a
click and hold (ie press and release after 500ms) lets you press right
button, mouse down on the menu item you want and release to select it.
This is how menus work in most toolkits.

The handling in weston is fine, it's there to handle the case where
the button release happens outside any client window, since the client
doesn't get those events.  If such a release happens late or we get a
second release outside the popup window we shut down the popup.

The problem is in toytoolkit, where we need to select the item if we
get a release within 500ms or if we get a second release.  A second
release is the case where the first release came after 500ms and
didn't pop down the menu, and the second release event is from a click
on a menu item.

https://bugs.freedesktop.org/show_bug.cgi?id=52456

11 years agocompositor-x11: Grab pointer on button press, ungrab on release
Kristian Høgsberg [Tue, 30 Oct 2012 15:04:52 +0000 (11:04 -0400)]
compositor-x11: Grab pointer on button press, ungrab on release

This lets us confine the X pointer to the Weston X window, which corresponds
better with the rendered Wayland cursor actually moves.

https://bugs.freedesktop.org/show_bug.cgi?id=53558

11 years agosimple-egl: Add a default cursor
Kristian Høgsberg [Mon, 29 Oct 2012 21:41:46 +0000 (17:41 -0400)]
simple-egl: Add a default cursor

If clients don't set a cursor, they get whatever the last cursor was
before the pointer entered their window.  That's a little confusing, so
set a pointer on enter to avoid that.  The down-side is that simple EGL
isn't very simple anymore.

https://bugs.freedesktop.org/show_bug.cgi?id=52452

11 years agoclients: Remove $(toolkit_libs) from weston_screensaver_CFLAGS
Kristian Høgsberg [Mon, 29 Oct 2012 21:15:54 +0000 (17:15 -0400)]
clients: Remove $(toolkit_libs) from weston_screensaver_CFLAGS

The typo that broke the build.

11 years agowindow: Ignore input_set_pointer_image() if we don't have a pointer
Kristian Høgsberg [Mon, 29 Oct 2012 20:42:26 +0000 (16:42 -0400)]
window: Ignore input_set_pointer_image() if we don't have a pointer

https://bugs.freedesktop.org/show_bug.cgi?id=55782

11 years agocompositor-drm: prefer PCI boot_vga GPU over other GPUs
David Herrmann [Mon, 29 Oct 2012 18:21:16 +0000 (19:21 +0100)]
compositor-drm: prefer PCI boot_vga GPU over other GPUs

If we can find a boot_vga PCI GPU, we should prefer it over any other GPU
that is connected to the system. The boot_vga flag tells us that this GPU
is the primary system GPU.

This fixes problems on two-GPU-systems were the wrong GPU is used. It also
fixes systems were DisplayLink GPUs are available with lower IDs than PCI
GPUs (although, this seems unlikely).

Note that udev_enumerate guarantees that the entry-list is sorted. So for
systems that have platform-GPUs, these should almost always be reported
prior to hotpluggable (PCI, USB, ...) GPUs, as the kernel probes them
first.

https://bugs.freedesktop.org/show_bug.cgi?id=56237

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
11 years agodnd: Use %zd in the format string for size_t types
Damien Lespiau [Fri, 26 Oct 2012 00:15:44 +0000 (01:15 +0100)]
dnd: Use %zd in the format string for size_t types

len i size_t, so is the result of the sizeof operator.

11 years agocompositor-x11: Inherit initial modifier state from XKB
Kristian Høgsberg [Mon, 29 Oct 2012 18:15:40 +0000 (14:15 -0400)]
compositor-x11: Inherit initial modifier state from XKB

https://bugs.freedesktop.org/show_bug.cgi?id=52419

11 years agoman: Update XCURSOR_* information a bit
Tiago Vignatti [Fri, 28 Sep 2012 13:29:47 +0000 (16:29 +0300)]
man: Update XCURSOR_* information a bit

This and the previous patch should fix:

    https://bugs.freedesktop.org/show_bug.cgi?id=54598

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
11 years agoxwm: Fail safely if cursor is not found
Tiago Vignatti [Fri, 28 Sep 2012 13:29:46 +0000 (16:29 +0300)]
xwm: Fail safely if cursor is not found

It will use the stock 'x' cursor instead when the system cursors are not
provided.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
11 years agoconfigure.ac: Check for libGLU for screensaver
Kristian Høgsberg [Mon, 29 Oct 2012 17:06:02 +0000 (13:06 -0400)]
configure.ac: Check for libGLU for screensaver

https://bugs.freedesktop.org/show_bug.cgi?id=56376

11 years agoAdd informal notes file
Pekka Paalanen [Wed, 24 Oct 2012 06:43:10 +0000 (09:43 +0300)]
Add informal notes file

By request on the wayland-devel mailing list, we could start collecting
useful writings here.

However, this is not meant to be a substitute to proper documentation,
though I understand it may very well become one. Better than nothing, I
guess, and hopefully helps in writing real documentation.

Feel free to add stuff.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>