qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Steve (YiLiang) Zhou
Dear all, My app has a mainwindow and a QDialog which is a child of mainwindow. And I want to set the app to the position 0,0. I use both setGeometry and move to 0,0. No luck , both failed. The window's position is unfixed and may appear to anywhere on the screen. My Qt version :5.2.2 Some

Re: [PATCH] wayland-client: Initialize newly created wl_proxys to zero.

2014-08-11 Thread Marek Chalupa
Hi, On 10 August 2014 12:27, Nils Chr. Brause nilschrbra...@gmail.com wrote: On Sat, Aug 09, 2014 at 09:25:04AM -0400, Jasper St. Pierre wrote: I'm not a fan of this patch because it does a memset, and then a few lines later, explicitly sets pointers to NULL. If you want a memset, you

RE: qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Steve (YiLiang) Zhou
Hi Pier, Thanks for your quick reply, your explain is very useful. But forgive me to bother you again, could you please give me an example or a link of how to achieve that? Thanks and Best Regards Steve Zhou -Original Message- From: Pier Luigi [mailto:pierluigi.fior...@gmail.com]

Re: Question about wl_global_create

2014-08-11 Thread Marek Chalupa
Hi, On 11 August 2014 07:48, Yang Andy williamyan...@hotmail.com wrote: Hi everyone In my software,i successfully call [wl_global_create]api. But callback [wl_global_bind_func_t bind] is never called. And are you binding to the global in a client? Client must call wl_registry_bind()

Request help regarding building of the xorg-macros and libxcb

2014-08-11 Thread gautam.h.kumar
Hello All, I was trying to build Weston according to the instructions given at http://wayland.freedesktop.org/ubuntu12.04.html 1. I built xorg-macros according to the given instructions as below git clone http://anongit.freedesktop.org/git/xorg/util/macros.git

Re: [PATCH wayland 1/2] scanner: Use an enum to determine the type of thing we're writing out

2014-08-11 Thread Marek Chalupa
Looks Good On 9 August 2014 00:22, Jasper St. Pierre jstpie...@mecheye.net wrote: --- src/scanner.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index b6c8a8d..51ecb55 100644 --- a/src/scanner.c +++ b/src/scanner.c

RE: Request help regarding building of the xorg-macros and libxcb

2014-08-11 Thread Srivardhan
Hi, From: wayland-devel [mailto:wayland-devel-boun...@lists.freedesktop.org] On Behalf Of gautam.h.ku...@accenture.com Sent: Monday, August 11, 2014 12:53 PM To: wayland-devel@lists.freedesktop.org Subject: Request help regarding building of the xorg-macros and libxcb Hello All, I was trying

RE: Request help regarding building of the xorg-macros and libxcb

2014-08-11 Thread gautam.h.kumar
Hi Hebbar, Thanks for the quick help, Pls find the logs when I tried to install macros as under root@ivi-VirtualBox:/source_build/macros# make make install make: Nothing to be done for `all'. make[1]: Entering directory `/source_build/macros'

RE: Request help regarding building of the xorg-macros and libxcb

2014-08-11 Thread gautam.h.kumar
Hi Marek, Thanks again for the help, How to set the PKG_CONFIG_PATH to $WLD/share/pkgconfig ? Or How to check what is my PKG_CONFIG_PATH ? Sorry may be very silly thing to ask but I am fairly new (Just a month old into linux). I am also googling on the above ☺ Thanks and Br, Gautam, From:

Re: Request help regarding building of the xorg-macros and libxcb

2014-08-11 Thread Marek Chalupa
The same way as you find out the contents of the PATH variable, i. e. echo $PKG_CONFIG_PATH Try $ export PKG_CONFIG_PATH=$WLD/share/pkgconfig:$PKG_CONFIG_PATH before building libxcb. You must have $WLD set to the prefix you're installing all the stuff (I suppose you have, because in the first

RE: Request help regarding building of the xorg-macros and libxcb

2014-08-11 Thread gautam.h.kumar
Hi Marek, Pls find the logs as under as you had told I did the same. root@ivi-VirtualBox:/source_build# echo $PKG_CONFIG_PATH root@ivi-VirtualBox:/source_build# export PKG_CONFIG_PATH=$WLD/share/pkgconfig:$PKG_CONFIG_PATH

Re: [PATCH] Fixes to parse_options, help info from display

2014-08-11 Thread Marek Chalupa
Hi, I tested this series of patches, seems working. I haven't reviewed all the code, though. Didn't try weston-nested and weston-screensaver, because I don't have it compiled. The patch 'load_image always prints a message on failure if filename is not empty' adds a whitespace error. Otherwise

Re: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Giulio Camuffo
2014-08-11 13:29 GMT+03:00 Rutledge Shawn shawn.rutle...@digia.com: On 11 Aug 2014, at 11:34 AM, Giulio Camuffo wrote: 2014-08-11 12:20 GMT+03:00 Rutledge Shawn shawn.rutle...@digia.com: On 11 Aug 2014, at 9:10 AM, Pier Luigi wrote: (top-posting fixed) 2014-08-11 8:13 GMT+02:00 Steve

Future sync points (Re: Wayland and scheduling)

2014-08-11 Thread Pekka Paalanen
On Thu, 7 Aug 2014 16:24:23 -0700 Brian C. Anderson briander...@google.com wrote: Responses inline. Feel free to cc wayland-devel, or I can start a new thread there. Ok, I'm CC'ing wayland-devel, let's see if more interested people turn up. :-) Before anyone else replies here: please do read

Re: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Giulio Camuffo
2014-08-11 16:12 GMT+03:00 Rutledge Shawn shawn.rutle...@digia.com: On 11 Aug 2014, at 12:57 PM, Giulio Camuffo wrote: 2014-08-11 13:29 GMT+03:00 Rutledge Shawn shawn.rutle...@digia.com: On 11 Aug 2014, at 11:34 AM, Giulio Camuffo wrote: 2014-08-11 12:20 GMT+03:00 Rutledge Shawn

RE: Request help regarding building of mesa module

2014-08-11 Thread gautam.h.kumar
Hi Marek, I rebuilt everything from scratch and it went on fine till again it started breaking in the mesa module git clone git://anongit.freedesktop.org/mesa/mesa cd mesa ./autogen.sh --prefix=$WLD --enable-gles2 --disable-gallium-egl \

Re: [PATCH] wayland-client: Initialize newly created wl_proxys to zero.

2014-08-11 Thread Nils Chr. Brause
On Mon, Aug 11, 2014 at 08:36:51AM +0200, Marek Chalupa wrote: proxy-flags = 0; After memset, this line can be removed as well. @@ -331,10 +331,10 @@ wl_proxy_create_for_id(struct wl_proxy *factory, if (proxy == NULL) return NULL; +

Re: [PATCH] wayland-client: Initialize newly created wl_proxys to zero.

2014-08-11 Thread Nils Chr. Brause
On Mon, Aug 11, 2014 at 8:39 AM, Pekka Paalanen ppaala...@gmail.com wrote No, I do not think that is wrong, but are you not writing language bindings or a wrapper library, which means you do not know how your code will be used? Yes, I'm writing C++ Bindings. These bindings don't expose the

Re: [PATCH v3 weston] gears: fix invalid calculation of the first FPS

2014-08-11 Thread Nils Chr. Brause
On Sun, Aug 10, 2014 at 4:47 PM, Ryo Munakata ryomnk...@gmail.com wrote: At the calculation of the first FPS, gears has initialized last FPS time with gettimeofday(). But the callback_data passed in the callback of wl_surface_frame() is the current time, in milliseconds, with an undefined

Re: [PATCH weston] simple-egl: Clean up unused frame_listener

2014-08-11 Thread Nils Chr. Brause
On Mon, Aug 11, 2014 at 10:08 AM, Boyan Ding stu_...@126.com wrote: Unused since commit 1e65840b6103197a684a551925a58fb1ae6c40e3 Signed-off-by: Boyan Ding stu_...@126.com --- clients/simple-egl.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/clients/simple-egl.c

Re: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Nils Chr. Brause
On Mon, Aug 11, 2014 at 12:57 PM, Giulio Camuffo giuliocamu...@gmail.com wrote: The problem is that windows don't always have a meaningful position. If a window is shown on two outputs at the same time, maybe one of which a remote one, what is the window position? And what is the position of

Re: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Pekka Paalanen
On Mon, 11 Aug 2014 18:49:50 +0200 Nils Chr. Brause nilschrbra...@gmail.com wrote: On Mon, Aug 11, 2014 at 12:57 PM, Giulio Camuffo giuliocamu...@gmail.com wrote: The problem is that windows don't always have a meaningful position. If a window is shown on two outputs at the same time,

Re: [PATCH] wayland-client: Initialize newly created wl_proxys to zero.

2014-08-11 Thread Pekka Paalanen
On Mon, 11 Aug 2014 18:12:20 +0200 Nils Chr. Brause nilschrbra...@gmail.com wrote: On Mon, Aug 11, 2014 at 8:39 AM, Pekka Paalanen ppaala...@gmail.com wrote No, I do not think that is wrong, but are you not writing language bindings or a wrapper library, which means you do not know how

[PATCH weston] shell: Update focused surface pointer coordinates in popup grab

2014-08-11 Thread Jonas Ådahl
The commit 'input: Send leave and enter pair when the surface moves under the cursor' introduced focused surface local pointer coordinates to keep track of if a surface had been moved or transformed in a way that the pointer posititon relative to that surface would change. Update these coordinates

Re: Interfaces to objects

2014-08-11 Thread Bill Spitzak
On 08/09/2014 02:21 AM, Pekka Paalanen wrote: You may be confusing wl_shell with wl_shell_surface. Indeed I am. Sorry about that. And in Weston's case, if a client does not create a wl_shell_surface, the shell specific data for the wl_surface really does not exist inside Weston, literally.

Re: [PATCH libinput 3/4] evdev: Release still pressed keys/buttons when removing device

2014-08-11 Thread Bill Spitzak
On 08/10/2014 10:39 PM, Peter Hutterer wrote: On Sun, Aug 10, 2014 at 12:27:07PM +0200, Jonas Ådahl wrote: We could also drop the mask and generate 'pressed' events when adding a device; can we do that reliably without risking a race condition? technically yes, but I'm not sure it is a good

Re: [PATCH] Fixes to parse_options, help info from display

2014-08-11 Thread Bill Spitzak
On 08/09/2014 02:00 AM, Pekka Paalanen wrote: Hi, does this series completely replace your previous 11-patch series of the similar kind? Yes this replaces it. But I think the only difference is the addition of the last patch for load_image. ___

[PATCH] V2: load_image always prints a message on failure if filename is not empty

2014-08-11 Thread Bill Spitzak
Small change to remove the trailing whitespace error. It was rather inconsistent before. This may help users figure out why backgrounds and icons don't show up. A better api where the error can be queried might be nice, but this seems sufficient for current Weston use. --- clients/image.c

Re: [PATCH 12/12] load_image always prints a message on failure if filename is not empty

2014-08-11 Thread Bill Spitzak
The whitespace error is fixed in another email I sent. I failed to correctly set the InReplyTo field... ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Bill Spitzak
I don't think rotated windows are the reason they are not supporting window position. Also the corner of the bounding box is a really awful control. Best to just use on of the corners, or the center. Assume the client can either get or set the rotation so it knows the actual bounding box.

Re: Interfaces to objects

2014-08-11 Thread Jasper St. Pierre
On Mon, Aug 11, 2014 at 5:05 PM, Bill Spitzak spit...@gmail.com wrote: On 08/09/2014 02:21 AM, Pekka Paalanen wrote: You may be confusing wl_shell with wl_shell_surface. Indeed I am. Sorry about that. And in Weston's case, if a client does not create a wl_shell_surface, the shell

Re: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Jasper St. Pierre
Rotated windows are not the only reason, but they do contribute. The ability to do an arbitrary transformation on the window is a very useful feature, for e.g. HiDPI support, and we'd like to expose as little data to the client as possible so we can enable better use cases. The client cannot get

Re: Interfaces to objects

2014-08-11 Thread Bill Spitzak
On 08/11/2014 03:03 PM, Jasper St. Pierre wrote: wl_shell does exist. It's a global object that is bound by the client, using wl_registry.bind. It's as real as any other object. What I meant was that the wl_registry::global event with the wl_shell api was not sent if the compositor does not

Re: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread The Rasterman
On Mon, 11 Aug 2014 18:05:42 -0400 Jasper St. Pierre jstpie...@mecheye.net said: Rotated windows are not the only reason, but they do contribute. The ability to do an arbitrary transformation on the window is a very useful feature, for e.g. HiDPI support, and we'd like to expose as little data

Re: Interfaces to objects

2014-08-11 Thread Jasper St. Pierre
On Mon, Aug 11, 2014 at 7:10 PM, Bill Spitzak spit...@gmail.com wrote: On 08/11/2014 03:03 PM, Jasper St. Pierre wrote: wl_shell does exist. It's a global object that is bound by the client, using wl_registry.bind. It's as real as any other object. What I meant was that the

Re: Interfaces to objects

2014-08-11 Thread Bill Spitzak
On 08/11/2014 04:19 PM, Jasper St. Pierre wrote: What exactly happens if you call wl_shell::get_shell_surface with one of these? It does not do a round trip so it cannot fail. wl_display has an 'error' event which is required to be a fatal error to the client. For subsurfaces, it will

RE: [Interest] qt5 window setGeometry and move not work in wayland platform

2014-08-11 Thread Steve (YiLiang) Zhou
Thanks all you guys, So when it come to my issue, there is no way to adjust the position of my app which is developed with qt4 and upgraded to qt5 now ,right? Or can I create a wayland compositor and attach it to my qt window ? Thanks and Best Regards Steve Zhou -Original Message-