Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Peter Hutterer
On Wed, May 08, 2013 at 11:46:43AM +, Rick Yorgason wrote: > Rick Yorgason writes: > > > Having the two controllers paired doesn't solve 3.  There are a lot of UI > > > problems with having two pointers running around the screen that share a > > > focus.  Let's say they're one of those crazy u

Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Peter Hutterer
On Mon, May 06, 2013 at 03:36:20PM +0300, Pekka Paalanen wrote: [...] > I had a private chat with Daniel, and we came to an understanding, > which I try to describe below. The interface names below are more like > placeholders for now. > > Into wl_seat, we should add a capability bit for gamepad.

Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Peter Hutterer
On Tue, May 07, 2013 at 11:14:08AM -0400, Todd Showalter wrote: > On Tue, May 7, 2013 at 3:23 AM, Pekka Paalanen wrote: > > > Yeah, like Daniel said, there is no concept of a "return value". > > > > When a client creates a new object, the server can only either agree, > > or disconnect the client

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-08 Thread Peter Hutterer
On Mon, May 06, 2013 at 08:06:35PM -0500, Vincent Povirk wrote: > > Windows used to do this and it is completely nuts. They fixed it in recent > > versions > > I don't know what version of Windows you're using, but I can still > observe this behavior in the Windows 8 file dialogs. I wrote a progr

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-08 Thread Peter Hutterer
On Wed, May 08, 2013 at 09:38:53AM +0300, Pekka Paalanen wrote: > On Tue, 07 May 2013 12:14:56 -0700 > Bill Spitzak wrote: > > > Pekka Paalanen wrote: > > > > > If you want to move a pointer with a gamepad in a game, then implement > > > that whole pointer thing in the game. Don't screw up the p

Re: minimized and stick windows

2013-05-08 Thread Jason Ekstrand
Hi Rafael, On Wed, May 8, 2013 at 6:04 PM, Rafael Antognolli wrote: > Hello, > > I've been looking the Weston code relative to maximized windows, and > it seems that the respective code for minimized windows wouldn't be > hard to implement. > > The questions are: are there any plans to add it? Is

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

2013-05-08 Thread Todd Showalter
On Wed, May 8, 2013 at 6:14 PM, Alex Deucher wrote: > Perhaps, but what's to say the 4k uptake will be any better than 3DTV? 4K doesn't have a lot of the intrinsic problems that 3DTV has. It's just higher-res TV. 3DTV brought a ton of baggage to the party; you had to have glasses for everyo

minimized and stick windows

2013-05-08 Thread Rafael Antognolli
Hello, I've been looking the Weston code relative to maximized windows, and it seems that the respective code for minimized windows wouldn't be hard to implement. The questions are: are there any plans to add it? Is there someone already working on it? If not, would it be OK if I start submitting

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

2013-05-08 Thread Alex Deucher
On Wed, May 8, 2013 at 5:19 PM, Todd Showalter wrote: > On Wed, May 8, 2013 at 3:51 PM, Jason Ekstrand wrote: > >> Also, I agree that you're going to have mixed setups. Like you said, people >> replace their laptops fairly frequently. However, I have a monitor sitting >> on my desk that I bough

Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Rick Yorgason
Martin Minarik writes: > Most common scenario would be: > A: joypad 1 on mother seat with keyboard and pointer > B: joypad 2 on child seat > > Let's say: > - user plugs another keyboard and pointer, udev assigns it > to B: > - weston promotes B: to mother seat > The situation is as follows: >

Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Rick Yorgason
Bill Spitzak writes: > If the gamepad can move the pointer then I think the buttons should go > to the pointer focus. I think if the gamepad is emulating a pointer, it should go all the way and send wl_pointer events. I believe this is perfectly workable with the proposed design. The compositor

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

2013-05-08 Thread Todd Showalter
On Wed, May 8, 2013 at 3:51 PM, Jason Ekstrand wrote: > Also, I agree that you're going to have mixed setups. Like you said, people > replace their laptops fairly frequently. However, I have a monitor sitting > on my desk that I bought in 2004 and it's still working perfectly with no > dead pix

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

2013-05-08 Thread John Kåre Alsaker
I think we should allow fractional scale factors. Clients which only support integer scale factors should round the scale factor they get to a whole number. We should implement this by adding a scale_factor event on wl_output (which clients can get at any time). When clients have rendered their co

Re: [PATCH 1/2] protocol: Allow versioned message arguments

2013-05-08 Thread Jason Ekstrand
On Wed, May 8, 2013 at 5:51 AM, wrote: > From: Alexander Larsson > > This allows an event to be extended in a backwards compatible way (on > the client side) by marking an argument with a since attribute. > Any arguments with a since value later than then value of the message > itself will be ma

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

2013-05-08 Thread Bill Spitzak
Todd Showalter wrote: I'm dubious about handling things this way... If I understand his proposal, it is almost identical to the "scaler" proposal. Right now if a hi-def output has a scale of 2, the client aware of this draws the buffer twice as large and sends a scale of 2 to his api.

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

2013-05-08 Thread Jason Ekstrand
Hi Alex & Todd, On Wed, May 8, 2013 at 11:06 AM, Todd Showalter wrote: > On Wed, May 8, 2013 at 11:07 AM, Alexander Larsson > wrote: > > >> We're moving to a "HiDPI" world. With 3DTV failing in the market, > >> it's looking like the TV manufacturers are going to push hard on 4K, > >> and on

Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Bill Spitzak
Rick Yorgason wrote: Currently it would make perfect sense for wl_gamepad to use wl_keyboard's focus except... what do you do if there is no keyboard? This would have been an easier problem to solve if we could just say that wl_keyboard and wl_gamepad both use wl_seat's focus. If the gamepad c

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

2013-05-08 Thread Bill Spitzak
Output scaling should be merged with the existing "buffer_transform" (the 8-value enumeration describing 90 degree rotations/reflections). I think in the end Wayland is going to have to have arbitrary affine transforms in the api, and it might make sense to decide a standard for these now, so

Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Martin Minarik
I like the second-class seat proposal. got the roughly same idea called it a focus inherit seat. It's kind of a child seat that is, for some reason, not capable to change it's own focus, instead it follows the mother seat focus. Nice thing is, the seat id = player id, making the player id redun

Re: Additional pixel formats for wl_shm

2013-05-08 Thread Kristian Høgsberg
On Wed, May 08, 2013 at 10:29:21AM +0300, Pekka Paalanen wrote: > On Thu, 2 May 2013 10:23:04 +0300 > Pekka Paalanen wrote: > > > On Wed, 1 May 2013 21:38:48 -0400 > > Kristian Høgsberg wrote: > > > > > On Fri, Apr 26, 2013 at 04:08:01PM +0300, Pekka Paalanen wrote: > > > > Hi Kristian, > > > >

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

2013-05-08 Thread Todd Showalter
On Wed, May 8, 2013 at 11:07 AM, Alexander Larsson wrote: >> We're moving to a "HiDPI" world. With 3DTV failing in the market, >> it's looking like the TV manufacturers are going to push hard on 4K, >> and once 4K panels are widely available they'll work their way down to >> PCs fairly quick

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

2013-05-08 Thread Alexander Larsson
On ons, 2013-05-08 at 10:43 -0400, Todd Showalter wrote: > On Wed, May 8, 2013 at 6:51 AM, wrote: > > There are problems with this. > > We're moving to a "HiDPI" world. With 3DTV failing in the market, > it's looking like the TV manufacturers are going to push hard on 4K, > and once 4K

Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Rick Yorgason
Rick Yorgason writes: > In thinking more about this some more, I don't even think these seats need > to be aggregated. A second-class wl_seat would just mean "This seat is > intended to be used at the application level rather than the compositor > level, and it will send enter/leave events to the

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

2013-05-08 Thread Todd Showalter
On Wed, May 8, 2013 at 6:51 AM, wrote: > I'm working on trying to make high DPI (i.e. retina-class) outputs > work well on Linux. I've written a proposal here: > > https://docs.google.com/document/d/1rvtiZb_Sm9C9718IoYQgnpzkirdl-wJZBBu_qLgaYyY/edit?usp=sharing I'm dubious about handling thi

Re: Gamepad focus model (Re: Input and games.)

2013-05-08 Thread Rick Yorgason
Rick Yorgason writes: > > Having the two controllers paired doesn't solve 3.  There are a lot of UI > > problems with having two pointers running around the screen that share a > > focus.  Let's say they're one of those crazy users that like sloppy- > > focus.  What happens when the two cursors ar

[PATCH 2/2] protocol: Add buffer_scale to wl_surface and wl_output

2013-05-08 Thread alexl
From: Alexander Larsson This adds wl_surface_set_buffer_scale() to set the buffer scale of a surface. It is similar to set_buffer_transform in that it says that the buffer is stored in a way that has been transformed (in this case scaled). This means that if an output is naturally scaled (i.e. h

[PATCH 1/2] protocol: Allow versioned message arguments

2013-05-08 Thread alexl
From: Alexander Larsson This allows an event to be extended in a backwards compatible way (on the client side) by marking an argument with a since attribute. Any arguments with a since value later than then value of the message itself will be marked optional and the demarshaller will supply defau

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

2013-05-08 Thread alexl
From: Alexander Larsson I'm working on trying to make high DPI (i.e. retina-class) outputs work well on Linux. I've written a proposal here: https://docs.google.com/document/d/1rvtiZb_Sm9C9718IoYQgnpzkirdl-wJZBBu_qLgaYyY/edit?usp=sharing This adds the initial protocol support needed for this. I

Re: Additional pixel formats for wl_shm

2013-05-08 Thread Pekka Paalanen
On Thu, 2 May 2013 10:23:04 +0300 Pekka Paalanen wrote: > On Wed, 1 May 2013 21:38:48 -0400 > Kristian Høgsberg wrote: > > > On Fri, Apr 26, 2013 at 04:08:01PM +0300, Pekka Paalanen wrote: > > > Hi Kristian, > > > > > > I'm working on Raspberry Pi, where the VideoCore can deal directly > > > w