Re: Window placement

2014-07-02 Thread Jason Gerecke
On Wed, Jul 2, 2014 at 3:33 PM, Fabrice Rey wrote: >> "The question is: what action triggers it to make this ring of icons >> appear?" > A global shortkey (and yes I know it's not yet possible on Wayland, that's > another problem on its own). > >> "What's the application doing? Does it have keyboa

Re: Window placement

2014-07-02 Thread Fabrice Rey
> "The question is: what action triggers it to make this ring of icons appear?" A global shortkey (and yes I know it's not yet possible on Wayland, that's another problem on its own). > "What's the application doing? Does it have keyboard focus but is potentially not under the mouse pointer? Do yo

[PATCH weston] xwayland: set surface_id to 0 when client resource is found

2014-07-02 Thread Tyler Veness
When Xwayland requests that a wl_surface be created and the X event is handled before the wayland requests, a surface ID is stored to window->surface_id and the window is added to the unpaired window list. When weston_wm_create_surface is called, the window is removed from the list and window->surf

Re: Window placement

2014-07-02 Thread Bill Spitzak
On 07/01/2014 11:20 PM, Pekka Paalanen wrote: Btw. did you ever consider, that the saved window position blobs could be compositor-specific? I mean, the client could save a blob for each compositor it has been running on separately, so you only need reposition your windows from scratch on the fi

Re: Window placement

2014-07-02 Thread Bill Spitzak
On 07/02/2014 11:39 AM, Fabrice Rey wrote: > "I am not sure if wayland should allow this, and whether there are clients that expect this to work" Well, there is at least one application that exists and displays a ring of icons under the mouse. So, it needs to tell the compositor to place its w

Re: X and wayland api

2014-07-02 Thread Bill Spitzak
The code in Weston provides examples for clients. Look at simple-shm, simple-egl, and the "toy toolkit" which is mostly in window.h and window.c. On 07/02/2014 03:57 AM, Pooja Thakoor wrote: I want to shift from X to Wayland programming. Can someone provide me with the wayland api calls that ar

Re: wl_tablet specification draft

2014-07-02 Thread Bill Spitzak
I meant a type of popup that stays up when the button is released. I think in Wayland terms it is a child or transient-for window, not what it is calling a "popup" in wl_shell. This is a real problem and anybody who has written a popup menu system would know about it. I do think the problem

Re: Window placement

2014-07-02 Thread Fabrice Rey
> " Why does it not have a parent window, if it is a normal application?" There is only 1 window in this application; there is no menu or whatever. The "circular menu" is just its name, it's not even a menu. It's an application that owns a surface to display stuff on it, and has to place this surfa

Re: Window placement

2014-07-02 Thread Fabrice Rey
> " I think you can make the circular menu a child window. Make it a child of whatever surface received the keystroke" You can't, there is no child window. The application has 1 window that appears under the mouse at a relative position that only the application knows. The absolute mouse position i

Re: Window placement

2014-07-02 Thread Fabrice Rey
> "I am not sure if wayland should allow this, and whether there are clients that expect this to work" Well, there is at least one application that exists and displays a ring of icons under the mouse. So, it needs to tell the compositor to place its window to (dx;dy) relatively to the mouse. (Under

Re: [Mesa-dev] OpenGL on Wayland

2014-07-02 Thread Thomas Daede
What Mesa version are you using? IIRC OpenGL 3.3 is only supported in llvmpipe in mesa 10.3 and newer. Using MESA_GL_VERISON_OVERRIDE just fakes the version string, it doesn't change what functions you can actually link to. Also, that also means for compatibility reasons you might want to request

Re: [Mesa-dev] OpenGL on Wayland

2014-07-02 Thread Kalrish Bäakjen
Thank you all for your help. Finally, it works, although I have to force the OpenGL version with MESA_GL_VERSION_OVERRIDE and its GLSL partner, because KHR_create_context is not supported under LLVMpipe - if those environment variables are not set, the maximum that can be got is a 3.0 context. I su

Re: Wayland program

2014-07-02 Thread Jasper St. Pierre
Have you looked at the "simple-shm" Wayland example? This shows a very simple Wayland program. http://cgit.freedesktop.org/wayland/weston/tree/clients/simple-shm.c If you have questions about it, we can explain them. On Wed, Jul 2, 2014 at 6:58 AM, Pooja Thakoor wrote: > Please send a small s

Re: X and wayland api

2014-07-02 Thread Jasper St. Pierre
Wayland is not a 1:1 mapping of the X APIs. We can't send you such a list, because the programming models are different. On Wed, Jul 2, 2014 at 6:57 AM, Pooja Thakoor wrote: > I want to shift from X to Wayland programming. Can someone provide me with > the wayland api calls that are similar to

Wayland program

2014-07-02 Thread Pooja Thakoor
Please send a small simple wayland application as I am a beginner and want to study the same ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

X and wayland api

2014-07-02 Thread Pooja Thakoor
I want to shift from X to Wayland programming. Can someone provide me with the wayland api calls that are similar to X calls. eg. wl_display_connect() in wayland and XOpenDisplay() in X is used to create client connection to display ___ wayland-devel mai

Re: [PATCH libinput 2/2] touchpad: reduce button size, use physical sizes where possible

2014-07-02 Thread Hans de Goede
Hi, On 07/02/2014 08:49 AM, Peter Hutterer wrote: > The current 20% is excessive. On the t440s, the button size amounts to ~14mm > from the bottom. On the x220 it amounts to ~9mm, leaving only 31mm as actual > touchpad. > > Reduce it to 15% instead, which amounts to 10.5mm on the t440 and 6mm on

Re: [PATCH V2] Do not assume 64x64 cursor, added support for other sizes (like in AMD Kaveri, 128x128).

2014-07-02 Thread Hardening
Le 25/06/2014 16:09, Alvaro Fernando García a écrit : > Init cursor size to 64x64 if drmGetCap() fails. > > Use Mesa GBM_BO_USE_CURSOR define (which removes 64x64 restriction) > > Signed-off-by: Alvaro Fernando García > --- > src/compositor-drm.c | 43 ---

Re: Window placement

2014-07-02 Thread Daniel Stone
On 1 July 2014 21:05, Bill Spitzak wrote: > > On 07/01/2014 12:57 PM, Jasper St. Pierre wrote: > >> It sounds like you have a highly technical workstation platform that has >> > a complex, professional tool involving multiple windows, and you are >> fully aware of your environment. You can keep us

Re: [PATCH libinput 1/2] touchpad: drop the BOTTOM_TO_AREA state

2014-07-02 Thread Hans de Goede
Hi, On 07/02/2014 08:49 AM, Peter Hutterer wrote: > The original intention of this state was to prevent an accidental move out of > the bottom software button to start moving the cursor. That ends up actually > preventing a number of normal moves that start low enough. Simply drop the > state. Th

[PATCH wayland 3/3] configure: fix publican version detection

2014-07-02 Thread Peter Hutterer
Publican now adds a spurious "v" to the version output. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c7ccace..e16c5b5 100644 --- a/configure.ac +++ b/configure.ac @@ -112,7 +112,7 @@ if test "x$enable_documentation" = "xyes"

[PATCH wayland 1/3] doc: reduce chunk_section_depth to 0

2014-07-02 Thread Peter Hutterer
One html page per chapter. --- doc/publican/publican.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/publican/publican.cfg b/doc/publican/publican.cfg index 0bc8a7e..ccb9f04 100644 --- a/doc/publican/publican.cfg +++ b/doc/publican/publican.cfg @@ -6,4 +6,4 @@ type: Boo

[PATCH wayland 2/3] doc: force publican to use fop

2014-07-02 Thread Peter Hutterer
Because wkhtmltopdf requires a $DISPLAY, and a patched Qt. https://bugzilla.redhat.com/show_bug.cgi?id=997682 --- doc/publican/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/publican/Makefile.am b/doc/publican/Makefile.am index bf143c8..a20b1d3 100644 --- a/do

Re: wl_tablet specification draft

2014-07-02 Thread Giulio Camuffo
2014-07-02 1:55 GMT+03:00 Bill Spitzak : > > > On 07/01/2014 12:35 PM, Jasper St. Pierre wrote: >> >> "A blink in the highlighting"? > > > Yes. Say the client wants to highlight the button being pressed and it has > popped up a menu, If the mouse is moved from the button to the menu, the > client w