Re: [PATCH libinput 1/2] Replace output screen size callback with transform helpers

2014-01-29 Thread Jonas Ådahl
On Thu, Jan 30, 2014 at 01:02:15PM +1000, Peter Hutterer wrote: > On Wed, Jan 29, 2014 at 09:33:11PM +0100, Jonas Ådahl wrote: > > Instead of automatically transforming absolute coordinates of touch and > > pointer events to screen coordinates, the user now uses the corresponding > > transform help

Re: [PATCH libinput 1/2] Replace output screen size callback with transform helpers

2014-01-29 Thread Peter Hutterer
On Wed, Jan 29, 2014 at 09:33:11PM +0100, Jonas Ådahl wrote: > Instead of automatically transforming absolute coordinates of touch and > pointer events to screen coordinates, the user now uses the corresponding > transform helper function. This means the coordinates returned by > libinput_event_poi

Re: [PATCH libinput 2/2] Remove mention of delta coordinates having device specific direction

2014-01-29 Thread Peter Hutterer
On Wed, Jan 29, 2014 at 09:33:12PM +0100, Jonas Ådahl wrote: > The event represent pointer motions on a screen, so this information is > unnecessary. It could also be confused for meaning the provided > coordinate's direction being device specific. > > Signed-off-by: Jonas Ådahl just for the arc

Re: [PATCH libinput 5/5] tools: add a tool for basic event debugging

2014-01-29 Thread Jonas Ådahl
On Wed, Jan 29, 2014 at 11:55:37AM +1000, Peter Hutterer wrote: > Simply prints the various events to make it easier to check what's coming out > of libinput. Works for --udev (the default) or for --device /dev/input/event0. > Example output: > > event7DEVICE_ADDEDseat0 default > eve

[PATCH libinput 1/2] Replace output screen size callback with transform helpers

2014-01-29 Thread Jonas Ådahl
Instead of automatically transforming absolute coordinates of touch and pointer events to screen coordinates, the user now uses the corresponding transform helper function. This means the coordinates returned by libinput_event_pointer_get_absolute_x(), libinput_event_pointer_get_absolute_y(), libin

[PATCH libinput 2/2] Remove mention of delta coordinates having device specific direction

2014-01-29 Thread Jonas Ådahl
The event represent pointer motions on a screen, so this information is unnecessary. It could also be confused for meaning the provided coordinate's direction being device specific. Signed-off-by: Jonas Ådahl --- src/libinput.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

Re: [PATCH 2/2] compositor: add a masking mechanism to weston_layer

2014-01-29 Thread Bill Spitzak
I believe what he is trying to achieve is this display of two "desktops" on the same screen, such as for previewing desktop switching, or perhaps for an intermediate state of a "swipe" from one desktop to another: +--+ +---+ | +| | | |

Re: [Mesa-dev] What use do swap interval > 1 and OML_sync_control divisor and remainder have?

2014-01-29 Thread Bill Spitzak
From the Kronos description: interval is silently clamped to minimum and maximum implementation dependent valuesbefore being stored; these values are defined by EGLConfig attributes EGL_MIN_SWAP_INTERVAL and EGL_MAX_SWAP_INTERVAL respectively. I think wayland egl can just clamp to 0,1 (or ev

[PATCH weston 3/4] compositor: Add a visibility switch to weston_layers

2014-01-29 Thread Ander Conselvan de Oliveira
Different parts of the shell, such as the workspace implementation, rely on making layers invisible to hide surfaces without discarding the order in which they appear. However, the layers are made invisible by removing them from the compositor's layers list. Instead, add the function weston_layer_

[PATCH weston 2/4] compositor: Remove weston_output::move_signal

2014-01-29 Thread Ander Conselvan de Oliveira
Since that signal is per output, it is necessary to track in which output a view is in so that the signal is handled properly. Instead, add a compositor wide output moved signal, that is handled by the shell. The shell iterates over the layers it owns to move views appropriately. --- desktop-shel

[PATCH weston 4/4] compositor: Move view repositioning logic into shell

2014-01-29 Thread Ander Conselvan de Oliveira
Remove the listener for output destroy from weston_view and instead iterate views owned by the shell in its own output destroy listener. This simplifies the code a bit since keeping the view listening for the destroy on the right output was a bit complicated. This also removes the function pointer

[PATCH weston 1/4] input: Remove exported function weston_pointer_verify()

2014-01-29 Thread Ander Conselvan de Oliveira
Instead, add a compositor signal that an output has been destroyed and handle that case locally in input.c. --- src/compositor.c | 17 ++--- src/compositor.h | 5 +++-- src/input.c | 20 +--- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/com

Re: [Mesa-dev] What use do swap interval > 1 and OML_sync_control divisor and remainder have?

2014-01-29 Thread Alexander E. Patrakov
[Just for the sake of argument] 2014-01-28 Pekka Paalanen : > Hi Ian and Jason > > On Mon, 27 Jan 2014 12:26:23 -0700 > Ian Romanick wrote: >> There are a number of theoretical uses, but I don't know that we've >> ever seen any in the wild. >> >> One is video playback. You likely want 30fps ther

Re: [PATCH] dim-layer: fix dimming for unfocused surfaces

2014-01-29 Thread Ander Conselvan de Oliveira
On 01/15/2014 10:30 AM, Emilio Pozuelo Monfort wrote: bump On 07/01/14 17:23, poch...@gmail.com wrote: From: Emilio Pozuelo Monfort Unfocusing a surface should dim it when dim-layer is enabled, but this got broken in commit 83ffd9. --- desktop-shell/shell.c | 13 - 1 file chang

Re: [PATCH 2/2] compositor: add a masking mechanism to weston_layer

2014-01-29 Thread Ander Conselvan de Oliveira
On 01/28/2014 06:36 PM, Giulio Camuffo wrote: 2014-01-28 Ander Conselvan de Oliveira : On 01/27/2014 09:46 PM, Giulio Camuffo wrote: this adds a mechanism to mask the views belonging to a layer to an arbitrary rect, in the global space. The parts that don't fit in that rect will be clipped awa

Re: Make safe double remove?

2014-01-29 Thread Neil Roberts
Jonathan Howard writes: > wl_list_remove changed isn't 100% guaranteed to not break anything, on > the other hand there is no guarantee the code does not have the fatal > double remove already. We definitely do already have a double-remove bug in Weston as described here: http://lists.freedeskt

[PATCH weston 2/2] desktop-shell: unfullscreen before (un)maximizing

2014-01-29 Thread pochu27
From: Emilio Pozuelo Monfort Before maximizing or unmaximizing a window, first tell the client to unfullscreen the window. This fixes a crash in weston because we ended up thinking the surface was fullscreened when it wasn't. --- desktop-shell/shell.c | 4 1 file changed, 4 insertions(+) d

[PATCH weston 1/2] desktop-shell: maximize the surface with the kbd focus

2014-01-29 Thread pochu27
From: Emilio Pozuelo Monfort We don't have focus-follows-mouse, so it makes more sense to maximize or fullscreen the surface that has the keyboard focus, not the one behind the pointer. --- desktop-shell/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop-shel