I'm the only one getting hard drive errors, right?

2012-05-30 Thread darxus
I was just playing with weston master under X, and timon37's radeon ddx, weston crashed, when I tried to delete the wayland lock I got an error that the filesystem was readonly, dmesg said: [ 496.347230] EXT4-fs error (device sda1): ext4_ext_search_left:1275: inode #21374007: comm flush-8:0:ix (

Re: [PATCH weston 10/31] evdev: Add device capabilities

2012-05-30 Thread Peter Hutterer
On Wed, May 30, 2012 at 04:31:48PM +0100, Daniel Stone wrote: > Does what it says on the box: lists whether or not the device supports > key, absolute, relative or touch classes. > > Signed-off-by: Daniel Stone > --- > src/evdev-private.h |9 + > src/evdev.c | 26 ++

[PATCH weston 29/31] compositor-x11: Generate our own keymap

2012-05-30 Thread Daniel Stone
Instead of mangling the names we've stored in the compositor, generate our own keymap and pass that to weston_seat_init_keyboard. Signed-off-by: Daniel Stone --- src/compositor-x11.c | 87 +++--- 1 file changed, 47 insertions(+), 40 deletions(-) dif

[PATCH weston 23/31] clients: Move XKB info from display to input struct

2012-05-30 Thread Daniel Stone
As it does (will) vary per-seat. Signed-off-by: Daniel Stone --- clients/window.c | 130 +++--- 1 file changed, 66 insertions(+), 64 deletions(-) diff --git a/clients/window.c b/clients/window.c index d05142f..6179196 100644 --- a/clients/window.

[PATCH weston 21/31] Use wl_fixed_t for axis bindings

2012-05-30 Thread Daniel Stone
In preparation for axis values being wl_fixed_t in the protocol as well. Signed-off-by: Daniel Stone --- src/compositor.c |2 +- src/compositor.h |2 +- src/shell.c | 11 ++- src/util.c |2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/com

[PATCH weston 17/31] tablet-shell: Use seat_list rather than primary seat

2012-05-30 Thread Daniel Stone
Activate surfaces for all seats when showing the grid, not just the primary seat. Signed-off-by: Daniel Stone --- src/tablet-shell.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/tablet-shell.c b/src/tablet-shell.c index fa45b25..90642ba 100644 --- a

[PATCH weston 24/31] Split weston_seat_init up into pointer/keyboard/touch

2012-05-30 Thread Daniel Stone
So we don't unnecessarily advertise interfaces the seat doesn't support. Signed-off-by: Daniel Stone --- src/compositor-wayland.c |2 ++ src/compositor-x11.c |2 ++ src/compositor.c | 40 +--- src/compositor.h | 10 ++ s

[PATCH weston 25/31] Split XKB keymap compilation out into separate function

2012-05-30 Thread Daniel Stone
Signed-off-by: Daniel Stone --- src/compositor.c | 53 + 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 0a2f71d..56094e6 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2244,6

[PATCH weston 28/31] Add keymap argument to weston_seat_init_keyboard

2012-05-30 Thread Daniel Stone
This allows backends to generate their own keymaps and pass them in for use rather than always forcing a single global keymap, which is particularly useful for nested compositors. Signed-off-by: Daniel Stone --- src/compositor-wayland.c |2 +- src/compositor-x11.c |2 +- src/composit

[PATCH weston 27/31] Move keymaps to weston_seat

2012-05-30 Thread Daniel Stone
In practice this doesn't mean much right now, since they all just take an extra reference on the global keymap. Signed-off-by: Daniel Stone --- src/compositor.c | 44 src/compositor.h | 21 +++-- 2 files changed, 35 insertions(+),

[PATCH weston 26/31] Separate out weston_xkb_info struct

2012-05-30 Thread Daniel Stone
Signed-off-by: Daniel Stone --- src/compositor-x11.c |6 +++--- src/compositor.c | 45 + src/compositor.h | 24 +--- 3 files changed, 41 insertions(+), 34 deletions(-) diff --git a/src/compositor-x11.c b/src/composit

[PATCH weston 30/31] Add weston_compositor::input_init

2012-05-30 Thread Daniel Stone
This function gets called after backend_init, so compositors can add their input devices slightly later on in the process. This gives us a chance to set the default XKB rulesets, in particular. Signed-off-by: Daniel Stone --- src/compositor-drm.c | 18 -- src/compositor-wa

[PATCH weston 22/31] Convert wl_pointer::axis to wl_fixed_t

2012-05-30 Thread Daniel Stone
To go with the matching protocol change. Signed-off-by: Daniel Stone --- clients/simple-egl.c |2 +- clients/window.c |2 +- src/compositor-wayland.c |4 ++-- src/compositor.c |2 +- tests/test-client.c |2 +- 5 files changed, 6 insertions(+), 6 delet

[PATCH weston 18/31] shell: Reset focus for all seats on activation

2012-05-30 Thread Daniel Stone
Rather than using a single hardcoded seat to activate new windows within a compositor, reset the focus for all seats. Signed-off-by: Daniel Stone --- src/shell.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/shell.c b/src/shell.c index 887ce45..96fef1c 100644

[PATCH weston 15/31] Use compositor->seat_list instead of a singular seat

2012-05-30 Thread Daniel Stone
Signed-off-by: Daniel Stone --- src/compositor.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 0e3e9ac..ffbdf96 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -658,20 +658,22 @@ weston_compositor_r

[PATCH weston 20/31] Split bindings into separate key/button/axis bindings

2012-05-30 Thread Daniel Stone
Rather than attempting to have the one handler prototype everywhere. Signed-off-by: Daniel Stone --- src/compositor-drm.c | 12 ++-- src/compositor.c | 21 --- src/compositor.h | 60 +++- src/screenshooter.c | 17 +++--- src/shell.c | 151 ++

[PATCH weston 19/31] Convert notify_axis to wl_fixed_t

2012-05-30 Thread Daniel Stone
In preparation for the rest of the axis code changing. Signed-off-by: Daniel Stone --- src/compositor-wayland.c |2 +- src/compositor-x11.c | 12 src/compositor.c | 10 ++ src/compositor.h |2 +- src/evdev.c |6 -- 5 files

[PATCH weston 31/31] Add support for wl_keyboard::keymap events

2012-05-30 Thread Daniel Stone
These keymap events communicate the keymap from the compositor to the clients via fd passing, rather than having the clients separately compile a map. Signed-off-by: Daniel Stone --- clients/window.c | 106 +++--- src/compositor-wayland.c | 42 +

[PATCH weston 16/31] tablet-shell: Remove 'seat' member

2012-05-30 Thread Daniel Stone
Signed-off-by: Daniel Stone --- src/tablet-shell.c |3 --- 1 file changed, 3 deletions(-) diff --git a/src/tablet-shell.c b/src/tablet-shell.c index cf9ddf6..fa45b25 100644 --- a/src/tablet-shell.c +++ b/src/tablet-shell.c @@ -52,7 +52,6 @@ struct tablet_shell { struct weston_compo

[PATCH weston 12/31] test-client.c: Replace hard-coded magic value

2012-05-30 Thread Daniel Stone
Took me a second to work out that the 272 was actually BTN_LEFT, as keys and buttons share a namespace in evdev. Signed-off-by: Daniel Stone --- tests/test-client.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-client.c b/tests/test-client.c index c6dfd96..f

[PATCH weston 13/31] Use enum wl_pointer_button_state instead of integer

2012-05-30 Thread Daniel Stone
Instead of using a uint32_t for state everywhere (except on the wire, where that's still the call signature), use the new wl_pointer_button_state enum, and explicit comparisons. Signed-off-by: Daniel Stone --- clients/clickdot.c |5 +++-- clients/desktop-shell.c | 16 ++-

[PATCH weston 14/31] Use enum wl_keyboard_key_state instead of integer

2012-05-30 Thread Daniel Stone
Instead of using a uint32_t for state everywhere (except on the wire, where that's still the call signature), use the new wl_keyboard_key_state enum, and explicit comparisons. Signed-off-by: Daniel Stone --- clients/clickdot.c |5 +++-- clients/eventdemo.c | 10 +++--- clien

[PATCH weston 10/31] evdev: Add device capabilities

2012-05-30 Thread Daniel Stone
Does what it says on the box: lists whether or not the device supports key, absolute, relative or touch classes. Signed-off-by: Daniel Stone --- src/evdev-private.h |9 + src/evdev.c | 26 ++ 2 files changed, 35 insertions(+) diff --git a/src/evdev-

[PATCH weston 09/31] Rename evdev_input_device::type to pending_events

2012-05-30 Thread Daniel Stone
Since that's what it actually is, rather than a description of the device as such. Signed-off-by: Daniel Stone --- src/evdev-private.h |2 +- src/evdev-touchpad.c |2 +- src/evdev.c | 44 ++-- 3 files changed, 24 insertions(+), 24 delet

[PATCH weston 08/31] evdev: Convert device type to an enum

2012-05-30 Thread Daniel Stone
Rather than using #defines. Signed-off-by: Daniel Stone --- src/evdev-private.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/evdev-private.h b/src/evdev-private.h index c11c9b6..43143f2 100644 --- a/src/evdev-private.h +++ b/src/evdev-private.h @@ -

[PATCH weston 11/31] evdev: Add LED update hook

2012-05-30 Thread Daniel Stone
Simply pushes the updated LEDs through to all keyboard attached to the seat. Signed-off-by: Daniel Stone --- src/evdev.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index a34aa43..e73f343 100644 --- a/src/evdev.c +++ b/src/evdev

[PATCH weston 06/31] Do binding modifier lookup on XKB state, not physical keys

2012-05-30 Thread Daniel Stone
When we update the modifier_state used for Weston bindings, derive this from the XKB modifier state, rather than a hardcoded mapping of physical keys to modifier state. Signed-off-by: Daniel Stone --- src/compositor.c | 46 -- src/compositor.h |3

[PATCH weston 07/31] Add core LED handling

2012-05-30 Thread Daniel Stone
Similar to how we deal with modifiers, also add LED handling to the core input code, with a callout into the backends to update them when they change. Signed-off-by: Daniel Stone --- src/compositor.c | 22 ++ src/compositor.h | 12 2 files changed, 34 inserti

[PATCH weston 03/31] Support wl_keyboard::modifiers event

2012-05-30 Thread Daniel Stone
This event lets the compositor inform clients of the canonical keyboard modifier/group state. Make sure we send it at appropriate moments from the compositor, and listen for it in clients as well. Signed-off-by: Daniel Stone --- clients/window.c | 24 src/comp

[PATCH weston 04/31] Convert Weston modifier #defines to an enum

2012-05-30 Thread Daniel Stone
To avoid any possible collision between the disparate XKB and Weston modifier namespaces. Signed-off-by: Daniel Stone --- src/compositor.c |2 +- src/compositor.h | 14 -- src/shell.c |2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/compositor

[PATCH weston 01/31] Update pointer and keyboard focus on new listeners

2012-05-30 Thread Daniel Stone
If we get a new wl_pointer or wl_keyboard listener from the client currently owning the focus resource, issue another wl_{pointer,keyboard}_set_focus so the focus_resource can be updated and the client can receive an enter event. Signed-off-by: Daniel Stone --- src/compositor.c | 23 ++

[PATCH weston 02/31] Update XKB state in update_modifier_state

2012-05-30 Thread Daniel Stone
As well as just updating Weston's internal modifier_state, also update our xkb_state object, in preparation for serialising modifier values to clients. This also makes update_modifier_state return 1 if the modifier/group state has changed, or 0 if not. Signed-off-by: Daniel Stone --- src/compos

[PATCH weston 05/31] Move xkb_state object to weston_seat

2012-05-30 Thread Daniel Stone
As we need to keep a separate state for every seat (i.e. keyboard interface) rather than a compositor-global state. Signed-off-by: Daniel Stone --- src/compositor.c | 162 -- src/compositor.h | 13 +++-- 2 files changed, 92 insertions(+), 83

[PATCH wayland 2/6] Always reset keyboard and pointer focus

2012-05-30 Thread Daniel Stone
If wl_pointer_set_focus or wl_keyboard_set_focus have been called before a listener has been established for that seat and client combination, the focus window will be set but the focus resource will be NULL. This changes these functions to always attempt to search for the relevant focus resource,

[PATCH wayland 6/6] Add wl_keyboard::keymap event

2012-05-30 Thread Daniel Stone
With this event, the compositor generates one canonical keymap for all clients, and then sends an mmap()able fd over the wire, rather than all the clients generating possibly disparate keymaps. Signed-off-by: Daniel Stone --- protocol/wayland.xml | 18 ++ 1 file changed, 18 ins

[PATCH wayland 5/6] Convert wl_pointer::axis to fixed

2012-05-30 Thread Daniel Stone
Which allows for smooth scrolling, among other things. Signed-off-by: Daniel Stone --- protocol/wayland.xml |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index d9fb5c2..9d93f4a 100644 --- a/protocol/wayland.xml +++ b/protocol/w

[PATCH 0/37] Last input protocol changes

2012-05-30 Thread Daniel Stone
Hi, This patchset makes what will hopefully represent the last of the input protocol changes. The small changes are to add enums for key/button state rather than using boolean integers, as well as converting axis events to fixed rather than int, so we can have smooth scrolling. The big ones are t

[PATCH wayland 4/6] Add key_state and button_state enums

2012-05-30 Thread Daniel Stone
Rather than hardcoding 0 and 1 everywhere. Signed-off-by: Daniel Stone --- protocol/wayland.xml | 19 +++ src/data-device.c|9 ++--- src/wayland-server.c |8 +--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/protocol/wayland.xml b/protocol

[PATCH wayland 3/6] wl_keyboard: Add modifier event

2012-05-30 Thread Daniel Stone
This event sends the current keyboard modifier/group state from the compositor to the client, allowing all clients to have a consistent view of the keyboard state (e.g. current layout, Caps Lock, et al). It should be sent after a keyboard enter event, and also immediately after any key event which

[PATCH wayland 1/6] cursor: Fix warning with objdir != srcdir build

2012-05-30 Thread Daniel Stone
Make sure we find the right include paths. Signed-off-by: Daniel Stone --- cursor/Makefile.am |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cursor/Makefile.am b/cursor/Makefile.am index 503559a..e08b762 100644 --- a/cursor/Makefile.am +++ b/cursor/Makefile.am @@ -11,4 +1

Re: gtk+-3.2.0 build failed with wayland backend

2012-05-30 Thread darxus
On 05/30, dar...@chaosreigns.com wrote: > I'd start by building everything but wayland and weston from git masters. Except for libxkbcommon, which needs branch for-weston-0.85. > On 05/30, suranjana.bhattacha...@wipro.com wrote: > > I am trying to build gtk+-3.2.0 with wayland backend by running

Re: gtk+-3.2.0 build failed with wayland backend

2012-05-30 Thread darxus
I'd start by building everything but wayland and weston from git masters. All the latest commits compile together for me as of a couple hours ago: 7c8f47a9911e982c0689a80b3d62aff952f6d460 atk f3a1ee5edd1a46e3c316d8555262bce556bc1480 cairo 652fe8d9dd2393127b11741ba63cb95a83ad454f dri2proto 481234f2

[PATCH weston 5/5] Add Android backend

2012-05-30 Thread Pekka Paalanen
The Android backend provides basic EGL/GLES2 graphics, where everything is always composited. Overlays are not used. Input is stubbed, therefore there is no input yet. This adds the first C++ source file into Weston compositor. The Android gralloc and fb HAL glue code to the Android EGL library is

[PATCH weston 4/5] tests, wcap: update ignores

2012-05-30 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- tests/.gitignore |1 + wcap/.gitignore |3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) create mode 100644 wcap/.gitignore diff --git a/tests/.gitignore b/tests/.gitignore index 3c957f4..45f7735 100644 --- a/tests/.gitignore +++ b/tests/.gitign

[PATCH weston 3/5] window: add wrapper for EPOLL_CLOEXEC

2012-05-30 Thread Pekka Paalanen
Android does not have EPOLL_CLOEXEC, so add a fallback. Signed-off-by: Pekka Paalanen --- clients/window.c |3 ++- shared/os-compatibility.c | 17 + shared/os-compatibility.h |3 +++ 3 files changed, 22 insertions(+), 1 deletions(-) diff --git a/clients/window

[PATCH weston 2/5] compositor: check for execinfo.h

2012-05-30 Thread Pekka Paalanen
Some systems may not have execinfo.h. Add a configure test for it, and if it is not found, make the backtrace() call a no-operation. Signed-off-by: Pekka Paalanen --- configure.ac |2 ++ shared/os-compatibility.h | 10 ++ src/compositor.c |1 - 3 files cha

[PATCH weston 1/5] compositor: work around missing SOCK_CLOEXEC

2012-05-30 Thread Pekka Paalanen
Android does not have SOCK_CLOEXEC, so implement a wrapper that falls back. Signed-off-by: Pekka Paalanen --- shared/Makefile.am|2 + shared/os-compatibility.c | 78 + shared/os-compatibility.h | 29 + src/compositor.c

gtk+-3.2.0 build failed with wayland backend

2012-05-30 Thread suranjana.bhattacharya
Hello , I am trying to build gtk+-3.2.0 with wayland backend by running the attached script. I have used following configuration. 1.Wayland 0.85. 2. libffi -3.0.10 3. glib -2.30.2 4. atk -2.3.3 5. gdk-pixbuf 2.24.1 6. pango 1.29.4 7.gtk+-3.2.0 I am getting following error. Please guide me how t

Re: [PATCH v3 1/3] Weston: log.c, log.h

2012-05-30 Thread Pekka Paalanen
Hi Martin, comments inline. On Tue, 29 May 2012 21:44:53 +0200 Martin Minarik wrote: > Changes from last time, we have function > weston_log_file_create_in_home() for opening > log file in home directory, it can handle long file names. > > We have function weston_log_handle_server() to redir

Re: [PATCH v3 1/2] Wayland: logging

2012-05-30 Thread Pekka Paalanen
On Tue, 29 May 2012 17:37:02 +0200 Martin Minarik wrote: > The core libwayland libraries should not handle logging, only passing > the error messages to subscribed functions. > An application linked to libwayland-server or libwayland-client > will be able to set own functions (one per library) to

Re: [PATCH wayland] build: add uninstalled pkg-config files

2012-05-30 Thread Pekka Paalanen
On Tue, 29 May 2012 10:04:45 -0400 Kristian Høgsberg wrote: > On Tue, May 29, 2012 at 12:05:58PM +0300, Pekka Paalanen wrote: > > Required for building apps against wayland libraries that have not been > > installed. > > I've seen this before, but how do you actually use uninstalled .pc files?