On 06/11/14 17:42, Pekka Paalanen wrote:
On Thu, 06 Nov 2014 16:08:56 +0900
Michel Dänzer wrote:
On 06.11.2014 03:06, Frederic Plourde wrote:
Many features, like animations, hardly depend on page flip timestamps
to work properly, but some DRM drivers do not correctly support page flip
timesta
On Thu, Nov 06, 2014 at 04:37:39PM +0100, Hans de Goede wrote:
> Turn test_trackpoint_scroll into a generic helper function for testing
> "button scrolling".
>
> Signed-off-by: Hans de Goede
> ---
> test/litest.c | 28
> test/litest.h | 3 +++
> test/trackpo
On Thu, Nov 06, 2014 at 04:37:31PM +0100, Hans de Goede wrote:
> In some cases the compositor will want to know which keys (buttons) a device
> has.
>
> E.g. for scrolling we want the compositor to be able to set a button to change
> a relative device (e.g. a trackball) into scroll mode, so that i
On Thu, Nov 06, 2014 at 04:37:38PM +0100, Hans de Goede wrote:
> Signed-off-by: Hans de Goede
> ---
> test/trackpoint.c | 39 +++
> 1 file changed, 39 insertions(+)
>
> diff --git a/test/trackpoint.c b/test/trackpoint.c
> index eb9ddfb..7a36370 100644
> --- a/
On Thu, Nov 06, 2014 at 04:37:36PM +0100, Hans de Goede wrote:
> Default to 2fg scrolling for now, once we have edge-scrolling we can default
> to edge-scrolling on touchpads which cannot detect more then 1 touch.
s/then/than/
>
> Signed-off-by: Hans de Goede
> ---
> src/evdev-mt-touchpad.c |
On Thu, Nov 06, 2014 at 04:37:32PM +0100, Hans de Goede wrote:
> Add a configuration option to allow selecting between 2-finger / edge / none
> scrolling (for touchpads).
>
> Signed-off-by: Hans de Goede
> ---
> src/libinput-private.h | 13
> src/libinput.c | 82 ++
On Thu, Nov 06, 2014 at 05:46:26PM -0800, Bill Spitzak wrote:
>
>
> On 11/06/2014 05:17 PM, Peter Hutterer wrote:
> >On Thu, Nov 06, 2014 at 11:41:20AM -0800, Bill Spitzak wrote:
> >>It sure seems like an api that returned a list of all the keycodes the
> >>device has would be better. It looks li
On 11/06/2014 05:17 PM, Peter Hutterer wrote:
On Thu, Nov 06, 2014 at 11:41:20AM -0800, Bill Spitzak wrote:
It sure seems like an api that returned a list of all the keycodes the
device has would be better. It looks like the client has to try every
possible keycode to find out what exists with
On Thu, Nov 06, 2014 at 11:41:20AM -0800, Bill Spitzak wrote:
> It sure seems like an api that returned a list of all the keycodes the
> device has would be better. It looks like the client has to try every
> possible keycode to find out what exists with this.
what is the caller (which is not a wl
Signed-off-by: Peter Hutterer
---
test/device.c | 4 ++--
test/litest-mouse.c| 2 +-
test/litest-ms-surface-cover.c | 2 +-
test/litest-trackpoint.c | 2 +-
test/litest.h | 2 +-
test/pointer.c | 8
6 files changed, 10 i
Signed-off-by: Peter Hutterer
---
test/Makefile.am | 1 +
test/litest-xen-virtual-pointer.c | 106 ++
test/litest.c | 2 +
test/litest.h | 1 +
4 files changed, 110 insertions(+)
create mode 100644
Yes, the name has VMware twice, not a typo.
Signed-off-by: Peter Hutterer
---
test/Makefile.am | 1 +
test/litest-vmware-virtual-usb-mouse.c | 115 +
test/litest.c | 2 +
test/litest.h |
Signed-off-by: Peter Hutterer
---
test/pointer.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/test/pointer.c b/test/pointer.c
index 4387526..52d812f 100644
--- a/test/pointer.c
+++ b/test/pointer.c
@@ -102,6 +102,44 @@ START_TEST(pointer_motion_rela
Re-uses the touch_down interface for now, but requires the slot is always 0.
That's easier for now than adding a new interface for abs event, at least
until we have more than one device that needs it.
This device, along with a couple of similar ones have a tendency to break in
the X.Org stack with
Matching patch for REL_WHEEL is 09a3770961aad0973, not sure why I didn't
do both at the same time.
Signed-off-by: Peter Hutterer
---
src/evdev.c | 19 +--
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index 272d165..84c42b6 100644
--- a/
On 11/06/2014 11:55 AM, Giulio Camuffo wrote:
2014-11-06 21:48 GMT+02:00 Bill Spitzak :
On 11/06/2014 09:55 AM, Giulio Camuffo wrote:
weston key bindings are supposed to eat the key events, and not pass it
on to clients, and indeed the wl_keyboard.key event is not sent. But
we must also no
On Thu, Nov 06, 2014 at 11:46:30PM +0100, David Herrmann wrote:
> Hi
>
> On Thu, Nov 6, 2014 at 11:39 PM, Peter Hutterer
> wrote:
> > From: David Herrmann
> >
> > This adds "struct ratelimit" and "ratelimit_test()". It's a very simple
> > rate-limit helper modeled after Linux' lib/ratelimit.c by
Hi
On Thu, Nov 6, 2014 at 11:39 PM, Peter Hutterer
wrote:
> From: David Herrmann
>
> This adds "struct ratelimit" and "ratelimit_test()". It's a very simple
> rate-limit helper modeled after Linux' lib/ratelimit.c by Dave Young.
>
> This comes in handy to limit log-messages in possible busy loop
From: David Herrmann
This adds "struct ratelimit" and "ratelimit_test()". It's a very simple
rate-limit helper modeled after Linux' lib/ratelimit.c by Dave Young.
This comes in handy to limit log-messages in possible busy loops etc..
Signed-off-by: David Herrmann
Reviewed-by: Peter Hutterer
S
---
Makefile.am | 4 +--
src/compositor.h | 5 ++--
src/log.c| 69 ++---
src/weston.c | 78
4 files changed, 90 insertions(+), 66 deletions(-)
diff --git a/Makefile.am b/Makefil
---
Makefile.am | 1 +
src/compositor.c | 679
src/weston.c | 718 +++
3 files changed, 719 insertions(+), 679 deletions(-)
create mode 100644 src/weston.c
diff --git a/Makefile.am
---
Makefile.am | 1 +
src/compositor-wayland.c | 37 ++-
src/compositor-wayland.h | 51
3 files changed, 71 insertions(+), 18 deletions(-)
create mode 100644 src/compositor-wayland.h
diff --git a/Make
Move the code launching the screenshooter client and implementing
the screenshot protocol out of libweston, and make screenshooter.c
a generic way to hook screenshoot protocols into weston.
---
desktop-shell/shell.c | 2 -
src/compositor.h | 5 +-
src/screenshooter.c | 176 -
---
src/compositor-drm.c | 2 +-
src/compositor-wayland.c | 4 +--
src/compositor-x11.c | 2 +-
src/compositor.c | 85 +++-
src/compositor.h | 9 +++--
5 files changed, 67 insertions(+), 35 deletions(-)
diff --git a/src/compo
libweston still internally uses those functions, so it is not linkable
yet by other compositors.
---
src/compositor.c | 144 --
src/weston.c | 145 +++
2 files changed, 145 insertions(+), 14
---
Makefile.am | 1 +
src/compositor-drm.c | 62 +---
src/compositor-drm.h | 60 ++
3 files changed, 76 insertions(+), 47 deletions(-)
create mode 100644 src/compositor-drm.h
diff --git a/M
---
Makefile.am | 28 ++--
src/input.c | 2 +-
2 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 6dbb4c3..0e5e88d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,17 +38,14 @@ AM_CPPFLAGS =
---
Makefile.am | 21 +-
src/weston-launch.c | 698 +
src/weston-launcher.c | 769 ++
src/weston-launcher.h | 45 +++
4 files changed, 845 insertions(+), 688 deletions(-)
create mode 100644 s
It uses the weston_client_launch API, which is not available in
libweston.
---
Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 1d7ee62..d045137 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -54,7 +54,6 @@ libweston_la_SOURCES =
---
Makefile.am | 1 +
src/compositor-x11.c | 5 +++--
src/compositor-x11.h | 27 +++
3 files changed, 31 insertions(+), 2 deletions(-)
create mode 100644 src/compositor-x11.h
diff --git a/Makefile.am b/Makefile.am
index d045137..1e14bf2 100644
--- a/Makefile.a
Instead of the central weston_config pointer we now store it in some
module-specific pointers. This way we can remove them one by one.
---
desktop-shell/shell.c | 8 +---
desktop-shell/shell.h | 1 +
fullscreen-shell/fullscreen-shell.c | 3 ++-
src/cms-colord.c
This creates a new library, libweston-xwayland.so with the entry point
to easily spawn a xwayland server. The xwayland module now links to that
library.
---
Makefile.am| 40 --
xwayland/launcher.c| 157 --
xwayland/xwayland-modul
This is to make them usable by future libweston users, since they will
not use weston_config.
weston_config is still used in the backends entry points, which will
later on live in their own files.
---
src/compositor-drm.c | 349 +--
src/compositor-fb
This patchset makes a libweston.so out of the compositor core, thought
to be used by many different users.
The main() was moved out of compositor.c into a new weston.c, and so
all weston-the-binary specific things, such as signal handling, child
process handling, config, logging and the like.
Some
2014-11-06 21:48 GMT+02:00 Bill Spitzak :
>
>
> On 11/06/2014 09:55 AM, Giulio Camuffo wrote:
>>
>> weston key bindings are supposed to eat the key events, and not pass it
>> on to clients, and indeed the wl_keyboard.key event is not sent. But
>> we must also not put the key in the keys array to pa
On 11/06/2014 09:55 AM, Giulio Camuffo wrote:
weston key bindings are supposed to eat the key events, and not pass it
on to clients, and indeed the wl_keyboard.key event is not sent. But
we must also not put the key in the keys array to pass to client with
the wl_keyboard.enter event, or else w
It sure seems like an api that returned a list of all the keycodes the
device has would be better. It looks like the client has to try every
possible keycode to find out what exists with this.
Also there should be some unification between how these things and
keyboards work.
On 11/06/2014 07
weston key bindings are supposed to eat the key events, and not pass it
on to clients, and indeed the wl_keyboard.key event is not sent. But
we must also not put the key in the keys array to pass to client with
the wl_keyboard.enter event, or else we may send the 'eaten' one too.
In the case of a k
On Thu, 06 Nov 2014 16:08:56 +0900
Michel Dänzer wrote:
> On 06.11.2014 03:06, Frederic Plourde wrote:
> > Many features, like animations, hardly depend on page flip timestamps
> > to work properly, but some DRM drivers do not correctly support page flip
> > timestamps (or not at all) and in that
Default to 2fg scrolling for now, once we have edge-scrolling we can default
to edge-scrolling on touchpads which cannot detect more then 1 touch.
Signed-off-by: Hans de Goede
---
src/evdev-mt-touchpad.c | 63 ++---
src/evdev-mt-touchpad.h | 2 ++
2 f
Non trackpoint button scrolling is mainly intended for use with trackballs,
but we can test it just as well with any relative pointer device.
Signed-off-by: Hans de Goede
---
test/pointer.c | 40
1 file changed, 40 insertions(+)
diff --git a/test/pointer
Signed-off-by: Hans de Goede
---
test/trackpoint.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/test/trackpoint.c b/test/trackpoint.c
index eb9ddfb..7a36370 100644
--- a/test/trackpoint.c
+++ b/test/trackpoint.c
@@ -60,6 +60,12 @@ test_trackpoint_sc
Fix copy and paste error, causing the function to test trackpoint scrolling
to be named test_2fg_scroll.
Signed-off-by: Hans de Goede
---
test/trackpoint.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/test/trackpoint.c b/test/trackpoint.c
index d4dfe41..eb9d
Turn test_trackpoint_scroll into a generic helper function for testing
"button scrolling".
Signed-off-by: Hans de Goede
---
test/litest.c | 28
test/litest.h | 3 +++
test/trackpoint.c | 40 +++-
3 files changed, 38 insert
In some cases the compositor will want to know which keys (buttons) a device
has.
E.g. for scrolling we want the compositor to be able to set a button to change
a relative device (e.g. a trackball) into scroll mode, so that it sends
scroll-axis events instead of pointer motion events.
In order fo
Fix libinput_device_config_send_events_get_default_mode docs referring to
itself, instead make it refer to libinput_device_config_send_events_get_mode.
Signed-off-by: Hans de Goede
---
src/libinput.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libinput.h b/src/libinpu
Keep the default behavior of middle button scrolling on trackpoints, this
allows turning off middle button scrolling on trackpoints, as well as turning
on button scrolling on trackballs.
Signed-off-by: Hans de Goede
---
src/evdev.c | 165 +++---
Add a configuration option to allow selecting between 2-finger / edge / none
scrolling (for touchpads).
Signed-off-by: Hans de Goede
---
src/libinput-private.h | 13
src/libinput.c | 82
src/libinput.h | 165
To avoid confusion with scroll mode configuration.
Signed-off-by: Hans de Goede
---
src/evdev-mt-touchpad.c | 10 +-
src/evdev-mt-touchpad.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index 85d980c..67bbf96 10
Signed-off-by: Hans de Goede
---
src/evdev.c | 22 +++---
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index b39b484..2821cc6 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -580,6 +580,19 @@ evdev_process_absolute(struct evdev_device *dev
On 14-11-06 02:08 AM, Michel Dänzer wrote:
On 06.11.2014 03:06, Frederic Plourde wrote:
If a pathological case is detected, we gracefully exit Weston
with an appropriate exit code to help developers debug their drivers.
That seems a bit harsh. IIRC, zero can be returned for the timestamp
inte
Hi
On Thu, Nov 6, 2014 at 6:51 AM, Peter Hutterer wrote:
> On Wed, Nov 05, 2014 at 01:32:16PM +0100, David Herrmann wrote:
>> diff --git a/test/misc.c b/test/misc.c
>> index 1512180..aa411ec 100644
>> --- a/test/misc.c
>> +++ b/test/misc.c
>> @@ -508,6 +508,40 @@ START_TEST(matrix_helpers)
>> }
52 matches
Mail list logo