Re: [PATCH 0/2] Support for high DPI outputs via scaling

2013-05-15 Thread John Kåre Alsaker
On Tue, May 14, 2013 at 9:46 PM, Bill Spitzak spit...@gmail.com wrote: John Kåre Alsaker wrote: I expect a compositor to render deviations of the desired scaling factor without scaling windows. The range when this is allowed is reported to clients so they can try to render at

Re: [PATCH 0/2] Support for high DPI outputs via scaling

2013-05-15 Thread Bill Spitzak
John Kåre Alsaker wrote: For example a compositor may want to use a 1-1.2 range with 1.1 as the desired scaling factor. A clients which are only able to draw at integer scaling factor would round that up to 2 and let the

Re: [PATCH] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-15 Thread Pekka Paalanen
On Tue, 14 May 2013 13:43:12 -0700 Bill Spitzak spit...@gmail.com wrote: You may also want to allow different horizontal and vertical scales, mostly because all plausable implementations can do this with no loss of speed, and the scaler api allows this. You will need to define if this is

Re: [PATCH] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-15 Thread Alexander Larsson
On tis, 2013-05-14 at 13:43 -0700, Bill Spitzak wrote: al...@redhat.com wrote: + /description + arg name=scale type=fixed/ +/request /interface Fixed is not a good idea for scaling factors. You cannot accurately represent values like 2/3 or 1/fixed. For an actual

Re: [PATCH] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-15 Thread Pekka Paalanen
On Tue, 14 May 2013 12:26:48 +0200 al...@redhat.com wrote: From: Alexander Larsson al...@redhat.com This adds wl_surface_set_buffer_scale() to set the buffer scale of a surface. It is similar to set_buffer_transform that the buffer is stored in a way that has been transformed (in this

[PATCH 1/2] cms-colord: Fix build after the API change 'Honor XDG_CONFIG_DIRS'

2013-05-15 Thread Richard Hughes
--- src/cms-colord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cms-colord.c b/src/cms-colord.c index 33f23b2..af6b5fa 100644 --- a/src/cms-colord.c +++ b/src/cms-colord.c @@ -478,7 +478,7 @@ colord_cms_output_destroy(gpointer data) WL_EXPORT int

[PATCH 2/2] cms-colord: Warn if reading or writing to the FD failed

2013-05-15 Thread Richard Hughes
This also fixes a compile warning when building the tarball. --- src/cms-colord.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/cms-colord.c b/src/cms-colord.c index af6b5fa..6056407 100644 --- a/src/cms-colord.c +++ b/src/cms-colord.c @@ -127,6 +127,7 @@

[PATCHES weston] Three small series

2013-05-15 Thread Quentin Glidic
Hello happy coders, Here are a few patches for weston, with some explanations. They all should be updated from the previous reviews. http://git.sardemff7.net/wayland/weston/log/?id=master..wip/patchesshowmsg=1 These patches are all independant changes to weston: — weston.pc and layers patches

Re: minimized and stick windows

2013-05-15 Thread Alexander Preisinger
Hello, I thought a bit about it and like to present my ideas. I mainly thought about it from the shell/compositor site when I like to minimize, maximize surfaces from keybindings, like in some window managers. For example the client can still request minimize, maximize, fullsrceen and toplevel

Re: minimized and stick windows

2013-05-15 Thread Pekka Paalanen
On Wed, 15 May 2013 14:20:21 +0200 Alexander Preisinger alexander.preisin...@gmail.com wrote: Hello, I thought a bit about it and like to present my ideas. I mainly thought about it from the shell/compositor site when I like to minimize, maximize surfaces from keybindings, like in some

Re: [PATCH] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-15 Thread Alexander Larsson
On ons, 2013-05-15 at 11:13 +0300, Pekka Paalanen wrote: On Tue, 14 May 2013 12:26:48 +0200 al...@redhat.com wrote: Lots of good stuff snipped. I'll try to fix things up based on that. Some responses below. + /description + arg name=scale type=fixed/ Are you sure you really

Re: [PATCH] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-15 Thread Alex Deucher
On Wed, May 15, 2013 at 9:11 AM, Alexander Larsson al...@redhat.com wrote: On ons, 2013-05-15 at 11:13 +0300, Pekka Paalanen wrote: On Tue, 14 May 2013 12:26:48 +0200 al...@redhat.com wrote: Lots of good stuff snipped. I'll try to fix things up based on that. Some responses below. +

[PATCH] wl_shell: Add surface state changed event

2013-05-15 Thread Mikko Levonmaa
This allows the shell to inform the surface that it has changed state, current supported states are default, minimized, maximized and fullscreen. The shell implementation is free to interpret the meaning for the state, i.e. the minimized might not always mean that the surface is fully hidden for

Re: [PATCH 1/2] cms-colord: Fix build after the API change 'Honor XDG_CONFIG_DIRS'

2013-05-15 Thread Kristian Høgsberg
On Wed, May 15, 2013 at 09:17:37AM +0100, Richard Hughes wrote: --- src/cms-colord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, this and 2/2 applied. Kristian diff --git a/src/cms-colord.c b/src/cms-colord.c index 33f23b2..af6b5fa 100644 --- a/src/cms-colord.c +++

Re: [PATCH weston] Fix missing corner resize cursors in Kubuntu (oxy-white theme)

2013-05-15 Thread Kristian Høgsberg
On Mon, May 13, 2013 at 11:51:11PM -0700, Dima Ryazanov wrote: Looks like that theme uses different names. Also, add the correspoding horizontal and vertical resize cursors, just for consistency. --- clients/window.c | 24 1 file changed, 16 insertions(+), 8

Re: minimized and stick windows

2013-05-15 Thread Kristian Høgsberg
On Mon, May 13, 2013 at 06:14:46PM -0300, Rafael Antognolli wrote: Hi Jason, On Wed, May 8, 2013 at 9:26 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Hi Rafael, On Wed, May 8, 2013 at 6:04 PM, Rafael Antognolli antogno...@gmail.com wrote: Hello, I've been looking the Weston

Re: [PATCH] wl_shell: Add surface state changed event

2013-05-15 Thread Mikko Levonmaa
On Wed, May 15, 2013 at 12:12:43PM -0500, Jason Ekstrand wrote: On Wed, May 15, 2013 at 9:39 AM, Mikko Levonmaa mikko.levon...@gmail.com wrote: This allows the shell to inform the surface that it has changed state, current supported states are default, minimized, maximized and

Re: [PATCH] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-15 Thread Bill Spitzak
Alexander Larsson wrote: In fact, working on this in weston a bit it seems that in general, scale is seldom used by itself but rather its used to calculate the buffer and screen size which are then used, and we want both of these to be integers. So, it seems to me that we should specify scaling

Re: [PATCH] wl_shell: Add surface state changed event

2013-05-15 Thread Jason Ekstrand
On Wed, May 15, 2013 at 1:37 PM, Mikko Levonmaa mikko.levon...@gmail.comwrote: On Wed, May 15, 2013 at 12:12:43PM -0500, Jason Ekstrand wrote: On Wed, May 15, 2013 at 9:39 AM, Mikko Levonmaa mikko.levon...@gmail.com wrote: This allows the shell to inform the surface that it has

Re: minimized and stick windows

2013-05-15 Thread Bill Spitzak
Alexander Preisinger wrote: + entry name=toplevel value=1 summary=surface is neither maximized, minizized or fullscreen/ Maybe normal? toplevel sounds like it is in the same layer as popup notifiers. +This event is sent in respons to set_maximized, set_minimized or +

Re: minimized and stick windows

2013-05-15 Thread Bill Spitzak
Pekka Paalanen wrote: Minimize is a little special, since the client does not need to react specially for it to look right. The client does have to react if there is a floating panel that also has to disappear. For example the floating shared toolbox with 2 main windows. It should only

Re: [PATCH] wl_shell: Add surface state changed event

2013-05-15 Thread Bill Spitzak
Alexander Preisinger wrote: +enum name=state + entry name=default value=0/ + entry name=minimized value=1/ + entry name=maximized value=2/ + entry name=fullscreen value=4/ Are these supposed to be flags? Like that it can send multiple states in one

Re: [PATCH] wl_shell: Add surface state changed event

2013-05-15 Thread Bill Spitzak
Mikko Levonmaa wrote: +event name=state_changed + description summary=The surface state was changed +The compositor or the user has taken action that has resulted in +this surface to change state. + /description + arg name=state type=uint/ +/event /interface

Re: [PATCH] wl_shell: Add surface state changed event

2013-05-15 Thread Mikko Levonmaa
On Wed, May 15, 2013 at 01:57:10PM -0500, Jason Ekstrand wrote: On Wed, May 15, 2013 at 1:37 PM, Mikko Levonmaa mikko.levon...@gmail.com wrote: On Wed, May 15, 2013 at 12:12:43PM -0500, Jason Ekstrand wrote: On Wed, May 15, 2013 at 9:39 AM, Mikko Levonmaa mikko.levon...@gmail.com

Re: minimized and stick windows

2013-05-15 Thread Mikko Levonmaa
I agree that the thread is a little daunting and gets political/personal towards the end. But between Pekka, Jason and Bill I see concensus and I'll try to summarize here: - The server needs to be able to initiate state changes, but the client is in control. The server requests a

Re: minimized and stick windows

2013-05-15 Thread Jason Ekstrand
On May 15, 2013 9:37 PM, Mikko Levonmaa mikko.levon...@gmail.com wrote: I agree that the thread is a little daunting and gets political/personal towards the end. But between Pekka, Jason and Bill I see concensus and I'll try to summarize here: - The server needs to be able to initiate

Re: minimized and stick windows

2013-05-15 Thread Bill Spitzak
Mikko Levonmaa wrote: i.e. when going from maximized/fullscreen to the default state the compositor could remember the last size and propose that to the client. The client has to know the default size: 1. It may have initially shown maximized. The compositor therefore has not seen it in

Re: [RFC] libinputmapper: Input device configuration for graphic-servers

2013-05-15 Thread Peter Hutterer
On Sun, May 12, 2013 at 04:20:59PM +0200, David Herrmann wrote: [bcc to gnome-shell-list and kwin, to keep discussion on wayland-devel] Without a generic graphics-server like xserver, compositors need to handle input devices themselves if run as wayland compositors. To avoid having several