Re: Using libweston with GTK/GDK

2019-06-04 Thread Pekka Paalanen
On Mon, 3 Jun 2019 18:53:28 +0100 adlo wrote: > > On 1 May 2019, at 10:34, Pekka Paalanen wrote: > > > > it is all just the normal Wayland protocol exchange but with a new > > interface of your own design. I'm not sure if there is a really > > minimal example, but I'll list at least some. > >

Re: Using libweston with GTK/GDK

2019-06-03 Thread adlo
> On 1 May 2019, at 10:34, Pekka Paalanen wrote: > > it is all just the normal Wayland protocol exchange but with a new > interface of your own design. I'm not sure if there is a really > minimal example, but I'll list at least some. > > One example of such private protocol extension is > https:

Re: Using libweston with GTK/GDK

2019-06-03 Thread Simon McVittie
On Mon, 03 Jun 2019 at 14:17:21 +0300, Pekka Paalanen wrote: > For > a test suite, you could use an environment variable to override the > default search path, but for a manual launch that is a bit more > inconvenient. This is the solution that is generally recommended in the GLib/GTK/GNOME stack

Re: Using libweston with GTK/GDK

2019-06-03 Thread Pekka Paalanen
On Mon, 3 Jun 2019 08:38:12 +0100 adlo wrote: > How do I ensure my client will still launch no matter what directory > I run my compositor from? How do I get the absolute path of my client? Hi, you install the client to a specific path. You get the path from your build system. > Also, how do I

Re: Using libweston with GTK/GDK

2019-06-03 Thread adlo
> On 1 May 2019, at 10:34, Pekka Paalanen wrote: > > On Wed, 1 May 2019 03:24:04 +0100 > adlo wrote: > > it is all just the normal Wayland protocol exchange but with a new > interface of your own design. I'm not sure if there is a really > minimal example, but I'll list at least some. > > One

Re: Using libweston with GTK/GDK

2019-05-20 Thread adlo
> On 1 May 2019, at 10:34, Pekka Paalanen wrote: > > The privacy of the protocol extension, the installed wayland global > really, is achieved in > https://gitlab.freedesktop.org/wayland/weston/blob/master/desktop-shell/shell.c#L4366 > >shell->child.client = weston_client_start(shell->compos

Re: Using libweston with GTK/GDK

2019-05-19 Thread adlo
> On 17 May 2019, at 09:10, Pekka Paalanen wrote: > > Hi, > > you forgot to use 'name'. > Thanks, that's fixed it! > you should not include that in a > client program. > Guess what I did :p Regards adlo ___ wayland-devel mailing list wayland-deve

Re: Using libweston with GTK/GDK

2019-05-17 Thread Pekka Paalanen
On Fri, 17 May 2019 11:10:20 +0300 Pekka Paalanen wrote: > On Fri, 17 May 2019 03:45:10 +0100 > adlo wrote: > > > On Thu, 2019-05-16 at 11:58 +0300, Pekka Paalanen wrote: > > > > > > you should run an actual event loop in the client, which will then > > > flush your requests to the composito

Re: Using libweston with GTK/GDK

2019-05-17 Thread Pekka Paalanen
On Fri, 17 May 2019 03:45:10 +0100 adlo wrote: > On Thu, 2019-05-16 at 11:58 +0300, Pekka Paalanen wrote: > > > > you should run an actual event loop in the client, which will then > > flush your requests to the compositor. Your issue seems to be a > > missing > > flush. > > > > See also https:

Re: Using libweston with GTK/GDK

2019-05-16 Thread adlo
On Thu, 2019-05-16 at 11:58 +0300, Pekka Paalanen wrote: > > you should run an actual event loop in the client, which will then > flush your requests to the compositor. Your issue seems to be a > missing > flush. > > See also https://wayland.freedesktop.org/extras.html "Protocol > dumpers" > and

Re: Using libweston with GTK/GDK

2019-05-16 Thread Pekka Paalanen
On Thu, 16 May 2019 05:59:20 +0100 adlo wrote: > On Wed, 2019-05-01 at 12:34 +0300, Pekka Paalanen wrote: > > > > it is all just the normal Wayland protocol exchange but with a new > > interface of your own design. I'm not sure if there is a really > > minimal example, but I'll list at least som

Re: Using libweston with GTK/GDK

2019-05-15 Thread adlo
On Wed, 2019-05-01 at 12:34 +0300, Pekka Paalanen wrote: > > it is all just the normal Wayland protocol exchange but with a new > interface of your own design. I'm not sure if there is a really > minimal example, but I'll list at least some. > > One example of such private protocol extension is >

Re: Using libweston with GTK/GDK

2019-05-10 Thread adlo
> On 10 May 2019, at 08:48, adlo wrote: > > I put a call to weston_log() in my server-side bind function and then called > wl_global_create() in my client. I was expecting to see my log entry printed > to the screen but I got nothing. > > What could be going on? I meant wl_registry_bind(), no

Re: Using libweston with GTK/GDK

2019-05-10 Thread adlo
On 9 May 2019, at 10:43, adlo wrote: >> On 1 May 2019, at 10:34, Pekka Paalanen wrote: >> >> it is all just the normal Wayland protocol exchange but with a new >> interface of your own design. I'm not sure if there is a really >> minimal example, but I'll list at least some. >> >> One example

Re: Using libweston with GTK/GDK

2019-05-09 Thread adlo
> On 1 May 2019, at 10:34, Pekka Paalanen wrote: > > it is all just the normal Wayland protocol exchange but with a new > interface of your own design. I'm not sure if there is a really > minimal example, but I'll list at least some. > > One example of such private protocol extension is > https:

Re: Using libweston with GTK/GDK

2019-05-07 Thread adlo
On Wed, 2019-05-01 at 12:34 +0300, Pekka Paalanen wrote: > > it is all just the normal Wayland protocol exchange but with a new > interface of your own design. I'm not sure if there is a really > minimal example, but I'll list at least some. > > One example of such private protocol extension is >

Re: Using libweston with GTK/GDK

2019-05-07 Thread Pekka Paalanen
On Tue, 7 May 2019 05:24:19 +0100 adlo wrote: > > On 1 May 2019, at 10:34, Pekka Paalanen wrote: > > > > Hi adlo, > > > > it is all just the normal Wayland protocol exchange but with a new > > interface of your own design. I'm not sure if there is a really > > minimal example, but I'll list at

Re: Using libweston with GTK/GDK

2019-05-06 Thread adlo
> On 1 May 2019, at 10:34, Pekka Paalanen wrote: > > Hi adlo, > > it is all just the normal Wayland protocol exchange but with a new > interface of your own design. I'm not sure if there is a really > minimal example, but I'll list at least some. > > One example of such private protocol extensi

Re: Using libweston with GTK/GDK

2019-05-05 Thread adlo
On Fri, 2019-05-03 at 11:02 +0100, adlo wrote: > > On 3 May 2019, at 10:20, Pekka Paalanen > > wrote: > > > > your Makefile.am needs the rules to generate the headers and .c > > files. > > > > I tried copying an edited Makefile.am from the wayland-protocols git > repository, but it complained a

Re: Using libweston with GTK/GDK

2019-05-03 Thread adlo
> On 3 May 2019, at 10:20, Pekka Paalanen wrote: > > your Makefile.am needs the rules to generate the headers and .c files. > >> I tried copying an edited Makefile.am from the wayland-protocols git repository, but it complained about GNU-isms. Is there anything else I need to do other than j

Re: Using libweston with GTK/GDK

2019-05-03 Thread Pekka Paalanen
On Fri, 03 May 2019 05:40:46 +0100 adlo wrote: > On Wed, 2019-05-01 at 12:34 +0300, Pekka Paalanen wrote: > > > > it is all just the normal Wayland protocol exchange but with a new > > interface of your own design. I'm not sure if there is a really > > minimal example, but I'll list at least som

Re: Using libweston with GTK/GDK

2019-05-02 Thread adlo
On Wed, 2019-05-01 at 12:34 +0300, Pekka Paalanen wrote: > > it is all just the normal Wayland protocol exchange but with a new > interface of your own design. I'm not sure if there is a really > minimal example, but I'll list at least some. > > One example of such private protocol extension is >

Re: Using libweston with GTK/GDK

2019-05-01 Thread Pekka Paalanen
On Wed, 1 May 2019 03:24:04 +0100 adlo wrote: > > On 29 Oct 2018, at 09:33, Pekka Paalanen wrote: > > > > the only opinionated advice I can give you is don't do it. Instead, put > > the GTK stuff in a separate process, let your compositor fork & exec > > it, and talk to it through your own priv

Re: Using libweston with GTK/GDK

2019-04-30 Thread adlo
> On 29 Oct 2018, at 09:33, Pekka Paalanen wrote: > > the only opinionated advice I can give you is don't do it. Instead, put > the GTK stuff in a separate process, let your compositor fork & exec > it, and talk to it through your own private protocol extension for the > special bits you need. W

Re: Using libweston with GTK/GDK

2018-10-29 Thread Pekka Paalanen
On Mon, 29 Oct 2018 04:46:02 + adlo wrote: > How do I run a GTK/GDK main loop from inside a libweston compositor? > If I want to use functions such as gdk_display_get_default () to get > my compositor's GdkDisplay, how do I guarantee that my compositor's > display exists? Hi, the only opini

Using libweston with GTK/GDK

2018-10-28 Thread adlo
How do I run a GTK/GDK main loop from inside a libweston compositor? If I want to use functions such as gdk_display_get_default () to get my compositor's GdkDisplay, how do I guarantee that my compositor's display exists? Regards adlo ___ wayland-deve